Automated semantic inference of visual features and scenes

ABSTRACT

In one embodiment, an apparatus comprises a memory and a processor. The memory stores visual data captured by one or more sensors. The processor detects one or more first objects in the visual data based on a machine learning model and one or more first reference templates. The processor further determines, based on an object ontology, that the visual data is expected to contain a second object, wherein the object ontology indicates that the second object is related to the one or more first objects. The processor further detects the second object in the visual data based on the machine learning model and a second reference template. The processor further determines, based on an inference rule, that the visual data is expected to contain a third object. The processor further detects the third object in the visual data based on the machine learning model and a third reference template.

CROSS-REFERENCE TO RELATED APPLICATIONS

This patent application is a continuation (and claims the benefit ofpriority under 35 U.S.C. § 120) of U.S. patent application Ser. No.16/141,812, entitled “AUTOMATED SEMANTIC INFERENCE OF VISUAL FEATURESAND SCENES”, filed on Sep. 25, 2018, which is a continuation-in-part ofInternational Application PCT/US2018/040390, entitled “VISUAL FOG”, withan international filing date of Jun. 29, 2018, which claims the benefitof U.S. Provisional Patent Application No. 62/691,464, entitled “VISUALFOG”, filed on Jun. 28, 2018, and also claims the benefit of U.S.Provisional Patent Application No. 62/611,536, entitled “VISUAL FOG”,filed on Dec. 28, 2017, the disclosures of which are considered part ofand hereby incorporated by reference in the disclosure of thisapplication.

FIELD OF THE SPECIFICATION

This disclosure relates in general to the field of visual computing, andmore particularly, though not exclusively, to automated semanticinference of visual features and scenes.

BACKGROUND

Many computer vision applications leverage machine learning for objectrecognition purposes. However, there are various challenges associatedwith existing machine learning object recognition techniques. Forexample, a labor-intensive training process is typically required forevery type of object or condition that needs to be recognized. Further,significant computing resources are often required to performrecognition accurately and timely, thus rendering manyresource-constrained devices unsuitable for object recognition purposes.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure is best understood from the following detaileddescription when read with the accompanying figures. It is emphasizedthat, in accordance with the standard practice in the industry, variousfeatures are not necessarily drawn to scale, and are used forillustration purposes only. Where a scale is shown, explicitly orimplicitly, it provides only one illustrative example. In otherembodiments, the dimensions of the various features may be arbitrarilyincreased or reduced for clarity of discussion.

FIG. 1 illustrates an example embodiment of a visual fog system inaccordance with certain embodiments.

FIGS. 2, 3, 4, and 5 illustrate examples of Internet-of-Things (IoT)networks and architectures that can be used in accordance with certainembodiments.

FIGS. 6 and 7 illustrate example computer architectures that can be usedin accordance with certain embodiments.

FIG. 8 illustrates an example embodiment of an architecture for visualfog nodes.

FIGS. 9, 10, 11, and 12A-B illustrate example embodiments of a visualfog architecture.

FIGS. 13 and 14 illustrate example embodiments associated with a visualquestion answering (VQA) framework.

FIGS. 15 and 16 illustrate example embodiments of device-centricscheduling for visual fog computing.

FIG. 17 illustrates an example embodiment of a runtime processingpipeline for a visual fog architecture.

FIG. 18 illustrates an example embodiment of a visual data storagearchitecture.

FIG. 19 illustrates an example of a vision processing pipeline thatleverages metadata for searching visual data.

FIGS. 20 and 21 illustrate examples of representing visual metadatausing a property graph.

FIG. 22 illustrates an example embodiment of an analytic image formatdesigned to aid in visual data processing.

FIG. 23 illustrates a performance graph for various image formats.

FIGS. 24A-C illustrate an example embodiment of a multi-domain cascadeconvolutional neural network (CNN).

FIGS. 25A-B, 26, 27, 28, 29, 30 and 31A-B illustrate the use ofbutterfly operations for a multi-domain convolutional neural network(CNN).

FIGS. 32 and 33 illustrate an example embodiment of a three-dimensional(3D) CNN for processing compressed visual data.

FIG. 34 illustrates an example of a pixel-domain CNN.

FIG. 35 illustrates an example of a pixel-domain visual analyticspipeline.

FIGS. 36 and 37 illustrate example embodiments of compressed-domainvisual analytics pipelines.

FIG. 38 illustrates a performance graph showing the precision of a CNNtrained using compressed visual data.

FIG. 39 illustrates a flowchart for an example embodiment ofcontext-aware image compression.

FIGS. 40A-C illustrate an example embodiment of a privacy-preservingdemographic identification system.

FIGS. 41, 42, and 43 illustrate an example embodiment ofprivacy-preserving distributed visual data processing.

FIGS. 44, 45, and 46 illustrate example embodiments of self-sovereigndevice identification for distributed computing networks.

FIG. 47 illustrates an example of device onboarding/commissioning in avisual fog network without conflict resolution.

FIGS. 48 and 49 illustrate example embodiments of algorithmidentification for distributed computing using a self-sovereignblockchain.

FIGS. 50, 51, and 52 illustrate example embodiments for processingtraditional and analytic image formats.

FIG. 53 illustrates a flowchart for an example embodiment ofprivacy-preserving demographics identification.

FIG. 54 illustrates a flowchart for an example embodiment ofprivacy-preserving distributed visual processing.

FIG. 55 illustrates an example use case for an automotive ubiquitouswitness.

FIG. 56 illustrates an example dataflow for a ubiquitous witness.

FIG. 57 illustrates an example use case for automotive anomaly detectionand reconstruction.

FIG. 58 illustrates an example process flow for IP-based anomalydetection and reconstruction.

FIG. 59 illustrates an example process flow for ICN-based anomalydetection and reconstruction.

FIG. 60 illustrates an example process flow of an individual node forICN-based anomaly detection and reconstruction.

FIG. 61 illustrates a flowchart for an example embodiment of aubiquitous visual computing witness.

FIG. 62 illustrates an example embodiment of a converged node router.

FIG. 63 illustrates an example network topology using converged noderouters.

FIG. 64 illustrates an example embodiment of an image storage systemthat leverages context-aware image compression.

FIG. 65 illustrates an example of inter-frame encoding for context-awareimage compression.

FIGS. 66, 67, and 68 illustrate examples embodiments associated withautomated semantic inference of visual features and scenes using smartcameras.

FIGS. 69 and 70 illustrate example embodiments associated with visualfog stream multiplexing for improved security.

FIG. 71 illustrates an example embodiment of a privacy-preserving VQAdataflow.

FIGS. 72 and 73 illustrate example sanitization techniques for aprivacy-preserving VQA dataflow.

FIGS. 74 and 75 illustrate pseudocode for a recursive quadrant divisionalgorithm associated with an analytic image format.

FIGS. 76A-E illustrate an example of a recursive quadrant divisionalgorithm on an image with a single region of interest.

FIGS. 77A-F illustrate an example of a recursive quadrant divisionalgorithm on an image with multiple regions of interest.

FIGS. 78A-B and 79A-B illustrate pseudocode for a region-based tilingalgorithm associated with an analytic image format.

FIGS. 80A-C illustrate an example of a region-based tiling algorithm onan image with a single region of interest.

FIGS. 81A-C illustrate an example of various tiling algorithms on animage with multiple overlapping regions of interest.

FIG. 82 illustrates an example of an integrated customer model based onboth online and offline customer activity.

FIG. 83 illustrates an example of linking the in-store visual footprintand online activity of a customer.

FIG. 84 illustrates an example of using online and in-store customeractivities to construct a robust customer model.

FIG. 85 illustrates a comparison of the shopping activities of multipleusers.

FIG. 86 illustrates an example of using head pose to infer customer datapoints.

FIG. 87 illustrates an example dataflow for creating an improvedcustomer model using both traditional and visual data.

FIG. 88 illustrates the architecture of an example application thatleverages integrated online and in-store customer profiles.

FIG. 89 illustrates a flowchart for an example embodiment of amulti-domain cascade CNN.

FIG. 90 illustrates a flowchart for an example embodiment of amulti-domain CNN.

FIG. 91 illustrates a flowchart for an example embodiment of ablockchain for managing self-sovereign device identities.

FIG. 92 illustrates a flowchart for an example embodiment of ablockchain for managing distributed computing algorithms.

EMBODIMENTS OF THE DISCLOSURE

This patent application is a continuation-in-part of InternationalApplication PCT/US2018/040390, entitled “VISUAL FOG”, with aninternational filing date of Jun. 29, 2018, which claims the benefit ofU.S. Provisional Patent Application No. 62/691,464, entitled “VISUALFOG”, filed on Jun. 28, 2018, and also claims the benefit of U.S.Provisional Patent Application No. 62/611,536, entitled “VISUAL FOG”,filed on Dec. 28, 2017, the disclosures of which are considered part ofand hereby incorporated by reference in the disclosure of thisapplication.

The following disclosure provides many different embodiments, orexamples, for implementing different features of the present disclosure.Specific examples of components and arrangements are described below tosimplify the present disclosure. These are, of course, merely examplesand are not intended to be limiting. Further, the present disclosure mayrepeat reference numerals and/or letters in the various examples. Thisrepetition is for the purpose of simplicity and clarity and does not initself dictate a relationship between the various embodiments and/orconfigurations discussed. Different embodiments may have differentadvantages, and no particular advantage is necessarily required of anyembodiment.

Example embodiments that may be used to implement the features andfunctionality of this disclosure will now be described with moreparticular reference to the attached FIGURES.

Visual Fog Introduction

FIG. 1 illustrates an example embodiment of a visual fog system 100 inaccordance with certain embodiments. Advancements in modern computinghave led to an increased use of computer vision technologies andlarge-scale visual computing for a variety of mainstream computingapplications. In particular, rapid deployments of cameras and othertypes of computer vision technologies have been leveraged for a varietyof visual computing applications that rely on large-scale videoanalytics and visual data processing. For example, large-scale visualcomputing can be leveraged for security and surveillance, transportation(e.g., traffic monitoring, navigation, parking, infrastructure planning,security or amber alerts), retail (e.g., customer analytics), enterpriseapplications, and so forth.

Existing approaches to large-scale visual computing, however, sufferfrom numerous limitations. In particular, existing visual computingapproaches are implemented using rigid designs that utilize resourcesinefficiently (e.g., processing, bandwidth, and storage resources) andprovide limited functionality. For example, using existing approaches,visual data is typically captured by devices at the edge of a networkand simply funneled to the cloud for processing and storage, thusrelying heavily on the cloud infrastructure. Due to the large size ofvisual data, however, this approach typically consumes significantnetwork bandwidth and requires substantial processing and storageresources in the cloud. As a result, existing approaches often sufferfrom high latency and inefficient resource utilization, and may also beinaccurate, unreliable, inflexible, and incapable of scalingefficiently.

Accordingly, this disclosure describes various embodiments of a visualfog computing system 100 for performing large-scale visual computing inan efficient and reliable manner. For example, rather than relyingexclusively or primarily on cloud resources 130 for visual computingtasks, visual fog system 100 leverages both cloud 130 and edge 110resources, which may be collectively referred to as the “fog.” In thismanner, visual fog system 100 can leverage all available “fog” resourcesto perform visual computing tasks more efficiently, thus improvingresource utilization, latency, accuracy, precision, and reliability.Moreover, as described further throughout this disclosure, visual fogsystem 100 can be implemented using a flexible design that supportsad-hoc queries and is highly scalable, thus rendering it suitable formany visual computing applications and use cases.

In the illustrated embodiment of FIG. 1, visual fog system 100 includesedge resources 110 and a plurality of associated visual sensors 120,cloud resources 130, and communication networks 150, which arerespectively discussed further below. Moreover, in various embodiments,these components of visual fog system 100 may be implemented some or allaspects of the visual computing functionality described throughout thisdisclosure in connection with the remaining FIGURES.

Edge resources 110 may include any equipment, devices, and/or componentsdeployed or connected near the “edge” of a communication network. In theillustrated embodiment, for example, edge resources 110 include end-userdevices 112 a,b (e.g., desktops, laptops, mobile devices),Internet-of-Things (IoT) devices 114, and gateways or routers 116, asdescribed further below. Edge resources 110 may communicate with eachother and/or with other remote networks and resources (e.g., cloudresources 130) through one or more communication networks 150, such aslocal area network 150 a and/or wide area network 150 b. Moreover, inthe illustrated embodiment, edge resources 110 collectively include aplurality of visual sensors 120 (e.g., cameras) for capturing visualrepresentations and data associated with their surroundings. In someembodiments, for example, certain end-user devices 112 and/or IoTdevices 114 may include one or more cameras and/or other types of visualsensors 120. Visual sensors 120 may include any type of visual oroptical sensors, such as cameras, ultraviolet (UV) sensors, laserrangefinders (e.g., light detection and ranging (LIDAR)), infrared (IR)sensors, electro-optical/infrared (EO/IR) sensors, and so forth.

End-user devices 112 may include any device that enables or facilitatesinteraction with a user in visual fog system 100, including, forexample, desktop computers, laptops, tablets, mobile phones and othermobile devices, and wearable devices (e.g., smart watches, smartglasses, headsets), among other examples.

IoT devices 114 may include any device capable of communicating and/orparticipating in an Internet-of-Things (IoT) system or network. IoTsystems may refer to new or improved ad-hoc systems and networkscomposed of a variety of different devices (e.g., IoT devices 114)interoperating and synergizing for a particular application or use case.Such ad-hoc systems are emerging as more and more products and equipmentevolve to become “smart,” meaning they are controlled or monitored bycomputer processors and are capable of communicating with other devices.For example, an IoT device 114 may include a computer processor and/orcommunication interface to allow interoperation with other components ofvisual fog system 100, such as with cloud resources 130 and/or otheredge resources 110. IoT devices 114 may be “greenfield” devices that aredeveloped with IoT capabilities from the ground-up, or “brownfield”devices that are created by integrating IoT capabilities into existinglegacy devices that were initially developed without IoT capabilities.For example, in some cases, IoT devices 114 may be built from sensorsand communication modules integrated in or attached to “things,” such asequipment, toys, tools, vehicles, living things (e.g., plants, animals,humans), and so forth. Alternatively, or additionally, certain IoTdevices 114 may rely on intermediary components, such as edge gatewaysor routers 116, to communicate with the various components of system100.

IoT devices 114 may include various types of sensors for monitoring,detecting, measuring, and generating sensor data and signals associatedwith characteristics of their environment. In some embodiments, forexample, certain IoT devices 114 may include visual sensors 120 (e.g.,cameras) for capturing visual representations and data associated withtheir surroundings. IoT devices 114 may also include other types ofsensors configured to detect characteristics such as movement, weight,physical contact, temperature, wind, noise, light, position, humidity,radiation, liquid, specific chemical compounds, battery life, wirelesssignals, computer communications, and bandwidth, among other examples.Sensors can include physical sensors (e.g., physical monitoringcomponents) and virtual sensors (e.g., software-based monitoringcomponents). IoT devices 114 may also include actuators to performvarious actions in their respective environments. For example, anactuator may be used to selectively activate certain functionality, suchas toggling the power or operation of a security system (e.g., alarm,camera, locks) or household appliance (e.g., audio system, lighting,HVAC appliances, garage doors), among other examples.

Indeed, this disclosure contemplates use of a potentially limitlessuniverse of IoT devices 114 and associated sensors/actuators. IoTdevices 114 may include, for example, any type of equipment and/ordevices associated with any type of system 100 and/or industry,including transportation (e.g., automobile, airlines), industrialmanufacturing, energy (e.g., power plants), telecommunications (e.g.,Internet, cellular, and television service providers), retail, medical(e.g., healthcare, pharmaceutical), and/or food and beverage, amongothers. In the transportation industry, for example, IoT devices 114 mayinclude equipment and devices associated with aircrafts, automobiles, orvessels, such as navigation systems, autonomous flight or drivingsystems, traffic monitoring and/or planning systems, parking systems,and/or any internal mechanical or electrical components that aremonitored by sensors (e.g., engines). IoT devices 114 may also includeequipment, devices, and/or infrastructure associated with industrialmanufacturing and production, shipping (e.g., cargo tracking),communications networks (e.g., gateways, routers, servers, cellulartowers), server farms, electrical power plants, wind farms, oil and gaspipelines, water treatment and distribution, wastewater collection andtreatment, and weather monitoring (e.g., temperature, wind, and humiditysensors), among other examples. IoT devices 114 may also include, forexample, any type of “smart” device or system, such as smartentertainment systems (e.g., televisions, audio systems, videogamesystems), smart household or office appliances (e.g.,heat-ventilation-air-conditioning (HVAC) appliances, refrigerators,washers and dryers, coffee brewers), power control systems (e.g.,automatic electricity, light, and HVAC controls), security systems(e.g., alarms, locks, cameras, motion detectors, fingerprint scanners,facial recognition systems), and other home automation systems, amongother examples. IoT devices 114 can be statically located, such asmounted on a building, wall, floor, ground, lamppost, sign, water tower,or any other fixed or static structure. IoT devices 114 can also bemobile, such as devices in vehicles or aircrafts, drones, packages(e.g., for tracking cargo), mobile devices, and wearable devices, amongother examples. Moreover, any type of edge resource 110 may also beconsidered as an IoT device 114, including end-user devices 112 and edgegateways 116, among other examples.

Edge gateways and/or routers 116 may be used to facilitate communicationto and from edge resources 110. For example, gateways 116 may providecommunication capabilities to existing legacy devices that wereinitially developed without any such capabilities (e.g., “brownfield”IoT devices 114). Gateways 116 can also be utilized to extend thegeographical reach of edge resources 110 with short-range, proprietary,or otherwise limited communication capabilities, such as IoT devices 114with Bluetooth or ZigBee communication capabilities. For example,gateways 116 can serve as intermediaries between IoT devices 114 andremote networks or services, by providing a front-haul to the IoTdevices 114 using their native communication capabilities (e.g.,Bluetooth, ZigBee), and providing a back-haul to other networks 150and/or cloud resources 130 using another wired or wireless communicationmedium (e.g., Ethernet, Wi-Fi, cellular). In some embodiments, a gateway116 may be implemented by a dedicated gateway device, or by ageneral-purpose device, such as another IoT device 114, end-user device112, or other type of edge resource 110. In some instances, gateways 116may also implement certain network management and/or applicationfunctionality (e.g., visual computing functionality, IoT application andmanagement functionality), either separately or in conjunction withother components, such as cloud resources 130 and/or other edgeresources 110.

Cloud resources 130 may include any resources or services that arehosted remotely over a network, which may otherwise be referred to as inthe “cloud.” In some embodiments, for example, cloud resources 130 maybe remotely hosted on servers in a datacenter (e.g., applicationservers, database servers). Cloud resources 130 may include anyresources, services, and/or functionality that can be utilized by or foredge resources 110, including but not limited to, visual computingapplications and services, IoT application and management services, datastorage, computational services (e.g., data analytics, searching,diagnostics and fault management), security services (e.g.,surveillance, alarms, user authentication), mapping and navigation,geolocation services, network or infrastructure management, paymentprocessing, audio and video streaming, messaging, social networking,news, and weather, among other examples.

Communication networks 150 a,b may be used to facilitate communicationbetween components of system 100. In the illustrated embodiment, forexample, edge resources 110 are connected to local area network (LAN)150 a in order to facilitate communication with each other and/or otherremote networks or resources, such as wide area network (WAN) 150 band/or cloud resources 130. In various embodiments, visual fog system100 may be implemented using any number or type of communicationnetwork(s) 150, including local area networks, wide area networks,public networks, the Internet, cellular networks, Wi-Fi networks,short-range networks (e.g., Bluetooth or ZigBee), and/or any other wiredor wireless communication networks or mediums.

In general, edge resources 110 (and in particular IoT devices 114) maygenerate an extremely large volume and variety of data. As one example,edge resources 110 with visual sensors 120 may generate large volumes ofvisual data, such as video and/or images. Edge resources 110 typicallyoffload this data to the cloud 130 for processing and/or storage. Cloudresources 130, however, may not necessarily be suited to handle therapidly growing volume, variety, and velocity of data generated by IoTdevices 114 and other edge resources 110. For example, cloud-basedprocessing may not be ideal in certain circumstances, such as processingtime-sensitive or highly confidential data, or when faced with networkbandwidth constraints, among other examples. Accordingly, in someembodiments, visual fog system 100 may leverage “edge” processing toaugment the performance and capabilities of the cloud 130 using edgeresources 110. Edge processing is an approach that involves processingcertain data at the network edge (e.g., using edge resources 110), nearwhere the data is generated, rather than simply funneling large volumesof data to the cloud for processing and storage. Certain data may stillbe sent to the cloud, as appropriate, such as for deeper analysis and/orlong-term storage. Edge processing may be used to complement theshortcomings of cloud-based processing (e.g., when cloud-basedprocessing is inefficient, ineffective, and/or unsecure), and thusimprove the handling of the growing volume, variety, and velocity ofdata generated by IoT devices 114 and/or other edge resources 110. Forexample, in some cases, processing data near its source (e.g., in thenetwork edge) rather than in the cloud may improve performance and/oravoid system failures or disasters. Edge processing may also conservenetwork bandwidth, which may be particularly beneficial when facingbandwidth constraints and/or limited network connectivity.

In some cases, the collective use of both edge 110 and cloud 130resources may be referred to as “fog” computing, as functionality of the“cloud” 130 is effectively extended by the edge resources 110, thusforming a “fog” over the network edge. Moreover, in some embodiments,devices 110 in the “fog” may connect and/or communicate with each otherusing an interconnection standard or protocol, such as the openinterconnect consortium (OIC) standard specification 1.0, released bythe Open Connectivity Foundation™ (OCF) on Dec. 23, 2015, which enablesdevices to discover and connect with each other; Thread, a networkingprotocol for Internet-of-Things (IoT) devices used in “smart” homeautomation and similar deployments, developed by an alliance oforganizations named the “Thread Group”; the optimized link state routing(OLSR) protocol; and/or the better approach to mobile ad-hoc networking(B.A.T.M.A.N.), among other examples.

Moreover, in some embodiments, fog computing may be leveraged by visualfog system 100 for large-scale visual computing applications. Forexample, in some embodiments, the components of visual fog system 100(e.g., edge resources 110, cloud resources 130) may be implemented withsome or all aspects of the visual computing functionality describedthroughout this disclosure in connection with the remaining FIGURES.

Any, all, or some of the computing devices of system 100 may be adaptedto execute any operating system, including Linux or other UNIX-basedoperating systems, Microsoft Windows, Windows Server, MacOS, Apple iOS,Google Android, or any customized and/or proprietary operating system,along with virtual machines adapted to virtualize execution of aparticular operating system.

While FIG. 1 is described as containing or being associated with aplurality of elements, not all elements illustrated within system 100 ofFIG. 1 may be utilized in each alternative implementation of the presentdisclosure. Additionally, one or more of the elements described inconnection with the examples of FIG. 1 may be located external to system100, while in other instances, certain elements may be included withinor as a portion of one or more of the other described elements, as wellas other elements not described in the illustrated implementation.Further, certain elements illustrated in FIG. 1 may be combined withother components, as well as used for alternative or additional purposesin addition to those purposes described herein.

Additional embodiments associated with the implementation of a visualfog computing system 100 are described further in connection with theremaining FIGURES. Accordingly, it should be appreciated that visual fogsystem 100 of FIG. 1 may be implemented with any aspects of theembodiments described throughout this disclosure. ExampleInternet-of-Things (IoT) Implementations

FIGS. 2-5 illustrate examples of Internet-of-Things (IoT) networks anddevices that can be used in accordance with embodiments disclosedherein. For example, the operations and functionality describedthroughout this disclosure may be embodied by an IoT device or machinein the example form of an electronic processing system, within which aset or sequence of instructions may be executed to cause the electronicprocessing system to perform any one of the methodologies discussedherein, according to an example embodiment. The machine may be an IoTdevice or an IoT gateway, including a machine embodied by aspects of apersonal computer (PC), a tablet PC, a personal digital assistant (PDA),a mobile telephone or smartphone, or any machine capable of executinginstructions (sequential or otherwise) that specify actions to be takenby that machine. Further, while only a single machine may be depictedand referenced in the example above, such machine shall also be taken toinclude any collection of machines that individually or jointly executea set (or multiple sets) of instructions to perform any one or more ofthe methodologies discussed herein. Further, these and like examples toa processor-based system shall be taken to include any set of one ormore machines that are controlled by or operated by a processor (e.g., acomputer) to individually or jointly execute instructions to perform anyone or more of the methodologies discussed herein.

FIG. 2 illustrates an example domain topology for respectiveinternet-of-things (IoT) networks coupled through links to respectivegateways. The internet of things (IoT) is a concept in which a largenumber of computing devices are interconnected to each other and to theInternet to provide functionality and data acquisition at very lowlevels. Thus, as used herein, an IoT device may include a semiautonomousdevice performing a function, such as sensing or control, among others,in communication with other IoT devices and a wider network, such as theInternet.

Often, IoT devices are limited in memory, size, or functionality,allowing larger numbers to be deployed for a similar cost to smallernumbers of larger devices. However, an IoT device may be a smart phone,laptop, tablet, or PC, or other larger device. Further, an IoT devicemay be a virtual device, such as an application on a smart phone orother computing device. IoT devices may include IoT gateways, used tocouple IoT devices to other IoT devices and to cloud applications, fordata storage, process control, and the like.

Networks of IoT devices may include commercial and home automationdevices, such as water distribution systems, electric power distributionsystems, pipeline control systems, plant control systems, lightswitches, thermostats, locks, cameras, alarms, motion sensors, and thelike. The IoT devices may be accessible through remote computers,servers, and other systems, for example, to control systems or accessdata.

The future growth of the Internet and like networks may involve verylarge numbers of IoT devices. Accordingly, in the context of thetechniques discussed herein, a number of innovations for such futurenetworking will address the need for all these layers to growunhindered, to discover and make accessible connected resources, and tosupport the ability to hide and compartmentalize connected resources.Any number of network protocols and communications standards may beused, wherein each protocol and standard is designed to address specificobjectives. Further, the protocols are part of the fabric supportinghuman accessible services that operate regardless of location, time orspace. The innovations include service delivery and associatedinfrastructure, such as hardware and software; security enhancements;and the provision of services based on Quality of Service (QoS) termsspecified in service level and service delivery agreements. As will beunderstood, the use of IoT devices and networks, such as thoseintroduced in FIGS. 2-5, present a number of new challenges in aheterogeneous network of connectivity comprising a combination of wiredand wireless technologies.

FIG. 2 specifically provides a simplified drawing of a domain topologythat may be used for a number of internet-of-things (IoT) networkscomprising IoT devices 204, with the IoT networks 256, 258, 260, 262,coupled through backbone links 202 to respective gateways 254. Forexample, a number of IoT devices 204 may communicate with a gateway 254,and with each other through the gateway 254. To simplify the drawing,not every IoT device 204, or communications link (e.g., link 216, 222,228, or 232) is labeled. The backbone links 202 may include any numberof wired or wireless technologies, including optical networks, and maybe part of a local area network (LAN), a wide area network (WAN), or theInternet. Additionally, such communication links facilitate opticalsignal paths among both IoT devices 204 and gateways 254, including theuse of MUXing/deMUXing components that facilitate interconnection of thevarious devices.

The network topology may include any number of types of IoT networks,such as a mesh network provided with the network 256 using Bluetooth lowenergy (BLE) links 222. Other types of IoT networks that may be presentinclude a wireless local area network (WLAN) network 258 used tocommunicate with IoT devices 204 through IEEE 802.11 (Wi-Fi®) links 228,a cellular network 260 used to communicate with IoT devices 204 throughan LTE/LTE-A (4G) or 5G cellular network, and a low-power wide area(LPWA) network 262, for example, a LPWA network compatible with theLoRaWan specification promulgated by the LoRa alliance, or a IPv6 overLow Power Wide-Area Networks (LPWAN) network compatible with aspecification promulgated by the Internet Engineering Task Force (IETF).Further, the respective IoT networks may communicate with an outsidenetwork provider (e.g., a tier 2 or tier 3 provider) using any number ofcommunications links, such as an LTE cellular link, an LPWA link, or alink based on the IEEE 802.15.4 standard, such as Zigbee®. Therespective IoT networks may also operate with use of a variety ofnetwork and internet application protocols such as ConstrainedApplication Protocol (CoAP). The respective IoT networks may also beintegrated with coordinator devices that provide a chain of links thatforms cluster tree of linked devices and networks.

Each of these IoT networks may provide opportunities for new technicalfeatures, such as those as described herein. The improved technologiesand networks may enable the exponential growth of devices and networks,including the use of IoT networks into as fog devices or systems. As theuse of such improved technologies grows, the IoT networks may bedeveloped for self-management, functional evolution, and collaboration,without needing direct human intervention. The improved technologies mayeven enable IoT networks to function without centralized controlledsystems. Accordingly, the improved technologies described herein may beused to automate and enhance network management and operation functionsfar beyond current implementations.

In an example, communications between IoT devices 204, such as over thebackbone links 202, may be protected by a decentralized system forauthentication, authorization, and accounting (AAA). In a decentralizedAAA system, distributed payment, credit, audit, authorization, andauthentication systems may be implemented across interconnectedheterogeneous network infrastructure. This allows systems and networksto move towards autonomous operations. In these types of autonomousoperations, machines may even contract for human resources and negotiatepartnerships with other machine networks. This may allow the achievementof mutual objectives and balanced service delivery against outlined,planned service level agreements as well as achieve solutions thatprovide metering, measurements, traceability and trackability. Thecreation of new supply chain structures and methods may enable amultitude of services to be created, mined for value, and collapsedwithout any human involvement.

Such IoT networks may be further enhanced by the integration of sensingtechnologies, such as sound, light, electronic traffic, facial andpattern recognition, smell, vibration, into the autonomous organizationsamong the IoT devices. The integration of sensory systems may allowsystematic and autonomous communication and coordination of servicedelivery against contractual service objectives, orchestration andquality of service (QoS) based swarming and fusion of resources. Some ofthe individual examples of network-based resource processing include thefollowing.

The mesh network 256, for instance, may be enhanced by systems thatperform inline data-to-information transforms. For example, self-formingchains of processing resources comprising a multi-link network maydistribute the transformation of raw data to information in an efficientmanner, and the ability to differentiate between assets and resourcesand the associated management of each. Furthermore, the propercomponents of infrastructure and resource based trust and serviceindices may be inserted to improve the data integrity, quality,assurance and deliver a metric of data confidence.

The WLAN network 258, for instance, may use systems that performstandards conversion to provide multi-standard connectivity, enablingIoT devices 204 using different protocols to communicate. Furthersystems may provide seamless interconnectivity across a multi-standardinfrastructure comprising visible Internet resources and hidden Internetresources.

Communications in the cellular network 260, for instance, may beenhanced by systems that offload data, extend communications to moreremote devices, or both. The LPWA network 262 may include systems thatperform non-Internet protocol (IP) to IP interconnections, addressing,and routing. Further, each of the IoT devices 204 may include theappropriate transceiver for wide area communications with that device.Further, each IoT device 204 may include other transceivers forcommunications using additional protocols and frequencies.

Finally, clusters of IoT devices may be equipped to communicate withother IoT devices as well as with a cloud network. This may allow theIoT devices to form an ad-hoc network between the devices, allowing themto function as a single device, which may be termed a fog device. Thisconfiguration is discussed further with respect to FIG. 3 below.

FIG. 3 illustrates a cloud computing network in communication with amesh network of IoT devices (devices 302) operating as a fog device atthe edge of the cloud computing network. The mesh network of IoT devicesmay be termed a fog 320, operating at the edge of the cloud 300. Tosimplify the diagram, not every IoT device 302 is labeled.

The fog 320 may be considered to be a massively interconnected networkwherein a number of IoT devices 302 are in communications with eachother, for example, by radio links 322. As an example, thisinterconnected network may be facilitated using an interconnectspecification released by the Open Connectivity Foundation™ (OCF). Thisstandard allows devices to discover each other and establishcommunications for interconnects. Other interconnection protocols mayalso be used, including, for example, the optimized link state routing(OLSR) Protocol, the better approach to mobile ad-hoc networking(B.A.T.M.A.N.) routing protocol, or the OMA Lightweight M2M (LWM2M)protocol, among others.

Three types of IoT devices 302 are shown in this example, gateways 304,data aggregators 326, and sensors 328, although any combinations of IoTdevices 302 and functionality may be used. The gateways 304 may be edgedevices that provide communications between the cloud 300 and the fog320, and may also provide the backend process function for data obtainedfrom sensors 328, such as motion data, flow data, temperature data, andthe like. The data aggregators 326 may collect data from any number ofthe sensors 328, and perform the back-end processing function for theanalysis. The results, raw data, or both may be passed along to thecloud 300 through the gateways 304. The sensors 328 may be full IoTdevices 302, for example, capable of both collecting data and processingthe data. In some cases, the sensors 328 may be more limited infunctionality, for example, collecting the data and allowing the dataaggregators 326 or gateways 304 to process the data.

Communications from any IoT device 302 may be passed along a convenientpath (e.g., a most convenient path) between any of the IoT devices 302to reach the gateways 304. In these networks, the number ofinterconnections provide substantial redundancy, allowing communicationsto be maintained, even with the loss of a number of IoT devices 302.Further, the use of a mesh network may allow IoT devices 302 that arevery low power or located at a distance from infrastructure to be used,as the range to connect to another IoT device 302 may be much less thanthe range to connect to the gateways 304.

The fog 320 provided from these IoT devices 302 may be presented todevices in the cloud 300, such as a server 306, as a single devicelocated at the edge of the cloud 300, e.g., a fog device. In thisexample, the alerts coming from the fog device may be sent without beingidentified as coming from a specific IoT device 302 within the fog 320.In this fashion, the fog 320 may be considered a distributed platformthat provides computing and storage resources to perform processing ordata-intensive tasks such as data analytics, data aggregation, andmachine-learning, among others.

In some examples, the IoT devices 302 may be configured using animperative programming style, e.g., with each IoT device 302 having aspecific function and communication partners. However, the IoT devices302 forming the fog device may be configured in a declarativeprogramming style, allowing the IoT devices 302 to reconfigure theiroperations and communications, such as to determine needed resources inresponse to conditions, queries, and device failures. As an example, aquery from a user located at a server 306 about the operations of asubset of equipment monitored by the IoT devices 302 may result in thefog 320 device selecting the IoT devices 302, such as particular sensors328, needed to answer the query. The data from these sensors 328 maythen be aggregated and analyzed by any combination of the sensors 328,data aggregators 326, or gateways 304, before being sent on by the fog320 device to the server 306 to answer the query. In this example, IoTdevices 302 in the fog 320 may select the sensors 328 used based on thequery, such as adding data from flow sensors or temperature sensors.Further, if some of the IoT devices 302 are not operational, other IoTdevices 302 in the fog 320 device may provide analogous data, ifavailable.

FIG. 4 illustrates a drawing of a cloud computing network, or cloud 400,in communication with a number of Internet of Things (IoT) devices. Thecloud 400 may represent the Internet, or may be a local area network(LAN), or a wide area network (WAN), such as a proprietary network for acompany. The IoT devices may include any number of different types ofdevices, grouped in various combinations. For example, a traffic controlgroup 406 may include IoT devices along streets in a city. These IoTdevices may include stoplights, traffic flow monitors, cameras, weathersensors, and the like. The traffic control group 406, or othersubgroups, may be in communication with the cloud 400 through wired orwireless links 408, such as LPWA links, optical links, and the like.Further, a wired or wireless sub-network 412 may allow the IoT devicesto communicate with each other, such as through a local area network, awireless local area network, and the like. The IoT devices may useanother device, such as a gateway 510 or 528 to communicate with remotelocations such as the cloud 500; the IoT devices may also use one ormore servers 530 to facilitate communication with the cloud 500 or withthe gateway 510. For example, the one or more servers 530 may operate asan intermediate network node to support a local edge cloud or fogimplementation among a local area network. Further, the gateway 528 thatis depicted may operate in a cloud-to-gateway-to-many edge devicesconfiguration, such as with the various IoT devices 514, 520, 524 beingconstrained or dynamic to an assignment and use of resources in thecloud 500.

Other example groups of IoT devices may include remote weather stations414, local information terminals 416, alarm systems 418, automatedteller machines 420, alarm panels 422, or moving vehicles, such asemergency vehicles 424 or other vehicles 426, among many others. Each ofthese IoT devices may be in communication with other IoT devices, withservers 404, with another IoT fog device or system (not shown, butdepicted in FIG. 3), or a combination therein. The groups of IoT devicesmay be deployed in various residential, commercial, and industrialsettings (including in both private or public environments).

As can be seen from FIG. 4, a large number of IoT devices may becommunicating through the cloud 400. This may allow different IoTdevices to request or provide information to other devices autonomously.For example, a group of IoT devices (e.g., the traffic control group406) may request a current weather forecast from a group of remoteweather stations 414, which may provide the forecast without humanintervention. Further, an emergency vehicle 424 may be alerted by anautomated teller machine 420 that a burglary is in progress. As theemergency vehicle 424 proceeds towards the automated teller machine 420,it may access the traffic control group 406 to request clearance to thelocation, for example, by lights turning red to block cross traffic atan intersection in sufficient time for the emergency vehicle 424 to haveunimpeded access to the intersection.

Clusters of IoT devices, such as the remote weather stations 414 or thetraffic control group 406, may be equipped to communicate with other IoTdevices as well as with the cloud 400. This may allow the IoT devices toform an ad-hoc network between the devices, allowing them to function asa single device, which may be termed a fog device or system (e.g., asdescribed above with reference to FIG. 3).

FIG. 5 is a block diagram of an example of components that may bepresent in an IoT device 550 for implementing the techniques describedherein. The IoT device 550 may include any combinations of thecomponents shown in the example or referenced in the disclosure above.The components may be implemented as ICs, portions thereof, discreteelectronic devices, or other modules, logic, hardware, software,firmware, or a combination thereof adapted in the IoT device 550, or ascomponents otherwise incorporated within a chassis of a larger system.Additionally, the block diagram of FIG. 5 is intended to depict ahigh-level view of components of the IoT device 550. However, some ofthe components shown may be omitted, additional components may bepresent, and different arrangement of the components shown may occur inother implementations.

The IoT device 550 may include a processor 552, which may be amicroprocessor, a multi-core processor, a multithreaded processor, anultra-low voltage processor, an embedded processor, or other knownprocessing element. The processor 552 may be a part of a system on achip (SoC) in which the processor 552 and other components are formedinto a single integrated circuit, or a single package, such as theEdison™ or Galileo™ SoC boards from Intel. As an example, the processor552 may include an Intel® Architecture Core™ based processor, such as aQuark™, an Atom™, an i3, an i5, an i7, or an MCU-class processor, oranother such processor available from Intel® Corporation, Santa Clara,Calif. However, any number other processors may be used, such asavailable from Advanced Micro Devices, Inc. (AMD) of Sunnyvale, Calif.,a MIPS-based design from MIPS Technologies, Inc. of Sunnyvale, Calif.,an ARM-based design licensed from ARM Holdings, Ltd. or customerthereof, or their licensees or adopters. The processors may includeunits such as an A5-A10 processor from Apple® Inc., a Snapdragon™processor from Qualcomm® Technologies, Inc., or an OMAP™ processor fromTexas Instruments, Inc.

The processor 552 may communicate with a system memory 554 over aninterconnect 556 (e.g., a bus). Any number of memory devices may be usedto provide for a given amount of system memory. As examples, the memorymay be random access memory (RAM) in accordance with a Joint ElectronDevices Engineering Council (JEDEC) design such as the DDR or mobile DDRstandards (e.g., LPDDR, LPDDR2, LPDDR3, or LPDDR4). In variousimplementations, the individual memory devices may be of any number ofdifferent package types such as single die package (SDP), dual diepackage (DDP) or quad die package (Q17P). These devices, in someexamples, may be directly soldered onto a motherboard to provide a lowerprofile solution, while in other examples the devices are configured asone or more memory modules that in turn couple to the motherboard by agiven connector. Any number of other memory implementations may be used,such as other types of memory modules, e.g., dual inline memory modules(DIMMs) of different varieties including but not limited to microDIMMsor MiniDIMMs.

To provide for persistent storage of information such as data,applications, operating systems and so forth, a storage 558 may alsocouple to the processor 552 via the interconnect 556. In an example, thestorage 558 may be implemented via a solid state disk drive (SSDD).Other devices that may be used for the storage 558 include flash memorycards, such as SD cards, microSD cards, xD picture cards, and the like,and USB flash drives. In low power implementations, the storage 558 maybe on-die memory or registers associated with the processor 552.However, in some examples, the storage 558 may be implemented using amicro hard disk drive (HDD). Further, any number of new technologies maybe used for the storage 558 in addition to, or instead of, thetechnologies described, such resistance change memories, phase changememories, holographic memories, or chemical memories, among others.

The components may communicate over the interconnect 556. Theinterconnect 556 may include any number of technologies, includingindustry standard architecture (ISA), extended ISA (EISA), peripheralcomponent interconnect (PCI), peripheral component interconnect extended(PCIx), PCI express (PCIe), or any number of other technologies. Theinterconnect 556 may be a proprietary bus, for example, used in a SoCbased system. Other bus systems may be included, such as an I2Cinterface, an SPI interface, point to point interfaces, and a power bus,among others.

The interconnect 556 may couple the processor 552 to a mesh transceiver562, for communications with other mesh devices 564. The meshtransceiver 562 may use any number of frequencies and protocols, such as2.4 Gigahertz (GHz) transmissions under the IEEE 802.15.4 standard,using the Bluetooth® low energy (BLE) standard, as defined by theBluetooth® Special Interest Group, or the ZigBee® standard, amongothers. Any number of radios, configured for a particular wirelesscommunication protocol, may be used for the connections to the meshdevices 564. For example, a WLAN unit may be used to implement Wi-Fi™communications in accordance with the Institute of Electrical andElectronics Engineers (IEEE) 802.11 standard. In addition, wireless widearea communications, e.g., according to a cellular or other wirelesswide area protocol, may occur via a WWAN unit.

The mesh transceiver 562 may communicate using multiple standards orradios for communications at different range. For example, the IoTdevice 550 may communicate with close devices, e.g., within about 10meters, using a local transceiver based on BLE, or another low powerradio, to save power. More distant mesh devices 564, e.g., within about50 meters, may be reached over ZigBee or other intermediate powerradios. Both communications techniques may take place over a singleradio at different power levels, or may take place over separatetransceivers, for example, a local transceiver using BLE and a separatemesh transceiver using ZigBee.

A wireless network transceiver 566 may be included to communicate withdevices or services in the cloud 500 via local or wide area networkprotocols. The wireless network transceiver 566 may be a LPWAtransceiver that follows the IEEE 802.15.4, or IEEE 802.15.4g standards,among others. The IoT device 550 may communicate over a wide area usingLoRaWAN™ (Long Range Wide Area Network) developed by Semtech and theLoRa Alliance. The techniques described herein are not limited to thesetechnologies, but may be used with any number of other cloudtransceivers that implement long range, low bandwidth communications,such as Sigfox, and other technologies. Further, other communicationstechniques, such as time-slotted channel hopping, described in the IEEE802.15.4e specification may be used.

Any number of other radio communications and protocols may be used inaddition to the systems mentioned for the mesh transceiver 562 andwireless network transceiver 566, as described herein. For example, theradio transceivers 562 and 566 may include an LTE or other cellulartransceiver that uses spread spectrum (SPA/SAS) communications forimplementing high speed communications. Further, any number of otherprotocols may be used, such as Wi-Fi® networks for medium speedcommunications and provision of network communications.

The radio transceivers 562 and 566 may include radios that arecompatible with any number of 3GPP (Third Generation PartnershipProject) specifications, notably Long Term Evolution (LTE), Long TermEvolution-Advanced (LTE-A), and Long Term Evolution-Advanced Pro (LTE-APro). It can be noted that radios compatible with any number of otherfixed, mobile, or satellite communication technologies and standards maybe selected. These may include, for example, any Cellular Wide Arearadio communication technology, which may include e.g. a 5th Generation(5G) communication systems, a Global System for Mobile Communications(GSM) radio communication technology, a General Packet Radio Service(GPRS) radio communication technology, or an Enhanced Data Rates for GSMEvolution (EDGE) radio communication technology, a UMTS (UniversalMobile Telecommunications System) communication technology, In additionto the standards listed above, any number of satellite uplinktechnologies may be used for the wireless network transceiver 566,including, for example, radios compliant with standards issued by theITU (International Telecommunication Union), or the ETSI (EuropeanTelecommunications Standards Institute), among others. The examplesprovided herein are thus understood as being applicable to various othercommunication technologies, both existing and not yet formulated.

A network interface controller (NIC) 568 may be included to provide awired communication to the cloud 500 or to other devices, such as themesh devices 564. The wired communication may provide an Ethernetconnection, or may be based on other types of networks, such asController Area Network (CAN), Local Interconnect Network (LIN),DeviceNet, ControlNet, Data Highway+, PROFIBUS, or PROFINET, among manyothers. An additional NIC 568 may be included to allow connect to asecond network, for example, a NIC 568 providing communications to thecloud over Ethernet, and a second NIC 568 providing communications toother devices over another type of network.

The interconnect 556 may couple the processor 552 to an externalinterface 570 that is used to connect external devices or subsystems.The external devices may include sensors 572, such as accelerometers,level sensors, flow sensors, optical light sensors, camera sensors,temperature sensors, a global positioning system (GPS) sensors, pressuresensors, barometric pressure sensors, and the like. The externalinterface 570 further may be used to connect the IoT device 550 toactuators 574, such as power switches, valve actuators, an audible soundgenerator, a visual warning device, and the like.

In some optional examples, various input/output (I/O) devices may bepresent within, or connected to, the IoT device 550. For example, adisplay or other output device 584 may be included to show information,such as sensor readings or actuator position. An input device 586, suchas a touch screen or keypad may be included to accept input. An outputdevice 584 may include any number of forms of audio or visual display,including simple visual outputs such as binary status indicators (e.g.,LEDs) and multi-character visual outputs, or more complex outputs suchas display screens (e.g., LCD screens), with the output of characters,graphics, multimedia objects, and the like being generated or producedfrom the operation of the IoT device 550.

A battery 576 may power the IoT device 550, although in examples inwhich the IoT device 550 is mounted in a fixed location, it may have apower supply coupled to an electrical grid. The battery 576 may be alithium ion battery, or a metal-air battery, such as a zinc-air battery,an aluminum-air battery, a lithium-air battery, and the like.

A battery monitor/charger 578 may be included in the IoT device 550 totrack the state of charge (SoCh) of the battery 576. The batterymonitor/charger 578 may be used to monitor other parameters of thebattery 576 to provide failure predictions, such as the state of health(SoH) and the state of function (SoF) of the battery 576. The batterymonitor/charger 578 may include a battery monitoring integrated circuit,such as an LTC4020 or an LTC2990 from Linear Technologies, an ADT7488Afrom ON Semiconductor of Phoenix Ariz., or an IC from the UCD90xxxfamily from Texas Instruments of Dallas, Tex. The batterymonitor/charger 578 may communicate the information on the battery 576to the processor 552 over the interconnect 556. The batterymonitor/charger 578 may also include an analog-to-digital (ADC)convertor that allows the processor 552 to directly monitor the voltageof the battery 576 or the current flow from the battery 576. The batteryparameters may be used to determine actions that the IoT device 550 mayperform, such as transmission frequency, mesh network operation, sensingfrequency, and the like.

A power block 580, or other power supply coupled to a grid, may becoupled with the battery monitor/charger 578 to charge the battery 576.In some examples, the power block 580 may be replaced with a wirelesspower receiver to obtain the power wirelessly, for example, through aloop antenna in the IoT device 550. A wireless battery charging circuit,such as an LTC4020 chip from Linear Technologies of Milpitas, Calif.,among others, may be included in the battery monitor/charger 578. Thespecific charging circuits chosen depend on the size of the battery 576,and thus, the current required. The charging may be performed using theAirfuel standard promulgated by the Airfuel Alliance, the Qi wirelesscharging standard promulgated by the Wireless Power Consortium, or theRezence charging standard, promulgated by the Alliance for WirelessPower, among others.

The storage 558 may include instructions 582 in the form of software,firmware, or hardware commands to implement the techniques describedherein. Although such instructions 582 are shown as code blocks includedin the memory 554 and the storage 558, it may be understood that any ofthe code blocks may be replaced with hardwired circuits, for example,built into an application specific integrated circuit (ASIC).

In an example, the instructions 582 provided via the memory 554, thestorage 558, or the processor 552 may be embodied as a non-transitory,machine readable medium 560 including code to direct the processor 552to perform electronic operations in the IoT device 550. The processor552 may access the non-transitory, machine readable medium 560 over theinterconnect 556. For instance, the non-transitory, machine readablemedium 560 may include storage units such as optical disks, flashdrives, or any number of other hardware devices. The non-transitory,machine readable medium 560 may include instructions to direct theprocessor 552 to perform a specific sequence or flow of actions, forexample, as described with respect to the flowchart(s) and diagram(s) ofoperations and functionality described throughout this disclosure.

Example Computing Architectures

FIGS. 6 and 7 illustrate example computer processor architectures thatcan be used in accordance with embodiments disclosed herein. Forexample, in various embodiments, the computer architectures of FIGS. 6and 7 may be used to implement the visual fog functionality describedthroughout this disclosure. Other embodiments may use other processorand system designs and configurations known in the art, for example, forlaptops, desktops, handheld PCs, personal digital assistants,engineering workstations, servers, network devices, network hubs,switches, embedded processors, digital signal processors (DSPs),graphics devices, video game devices, set-top boxes, micro controllers,cell phones, portable media players, hand held devices, and variousother electronic devices, are also suitable. In general, a huge varietyof systems or electronic devices capable of incorporating a processorand/or other execution logic as disclosed herein are generally suitable.

FIG. 6 illustrates a block diagram for an example embodiment of aprocessor 600. Processor 600 is an example of a type of hardware devicethat can be used in connection with the embodiments described throughoutthis disclosure. Processor 600 may be any type of processor, such as amicroprocessor, an embedded processor, a digital signal processor (DSP),a network processor, a multi-core processor, a single core processor, orother device to execute code. Although only one processor 600 isillustrated in FIG. 6, a processing element may alternatively includemore than one of processor 600 illustrated in FIG. 6. Processor 600 maybe a single-threaded core or, for at least one embodiment, the processor600 may be multi-threaded in that it may include more than one hardwarethread context (or “logical processor”) per core.

FIG. 6 also illustrates a memory 602 coupled to processor 600 inaccordance with an embodiment. Memory 602 may be any of a wide varietyof memories (including various layers of memory hierarchy) as are knownor otherwise available to those of skill in the art. Such memoryelements can include, but are not limited to, random access memory(RAM), read only memory (ROM), logic blocks of a field programmable gatearray (FPGA), erasable programmable read only memory (EPROM), andelectrically erasable programmable ROM (EEPROM).

Processor 600 can execute any type of instructions associated withalgorithms, processes, or operations detailed herein. Generally,processor 600 can transform an element or an article (e.g., data) fromone state or thing to another state or thing.

Code 604, which may be one or more instructions to be executed byprocessor 600, may be stored in memory 602, or may be stored insoftware, hardware, firmware, or any suitable combination thereof, or inany other internal or external component, device, element, or objectwhere appropriate and based on particular needs. In one example,processor 600 can follow a program sequence of instructions indicated bycode 604. Each instruction enters a front-end logic 606 and is processedby one or more decoders 608. The decoder may generate, as its output, amicro operation such as a fixed width micro operation in a predefinedformat, or may generate other instructions, microinstructions, orcontrol signals that reflect the original code instruction. Front-endlogic 606 may also include register renaming logic and scheduling logic,which generally allocate resources and queue the operation correspondingto the instruction for execution.

Processor 600 can also include execution logic 614 having a set ofexecution units 616 a, 616 b, 616 n, etc. Some embodiments may include anumber of execution units dedicated to specific functions or sets offunctions. Other embodiments may include only one execution unit or oneexecution unit that can perform a particular function. Execution logic614 performs the operations specified by code instructions.

After completion of execution of the operations specified by the codeinstructions, back-end logic 618 can retire the instructions of code604. In one embodiment, processor 600 allows out of order execution butrequires in order retirement of instructions. Retirement logic 620 maytake a variety of known forms (e.g., re-order buffers or the like). Inthis manner, processor 600 is transformed during execution of code 604,at least in terms of the output generated by the decoder, hardwareregisters and tables utilized by register renaming logic 610, and anyregisters (not shown) modified by execution logic 614.

Although not shown in FIG. 6, a processing element may include otherelements on a chip with processor 600. For example, a processing elementmay include memory control logic along with processor 600. Theprocessing element may include I/O control logic and/or may include I/Ocontrol logic integrated with memory control logic. The processingelement may also include one or more caches. In some embodiments,non-volatile memory (such as flash memory or fuses) may also be includedon the chip with processor 600.

FIG. 7 illustrates a block diagram for an example embodiment of amultiprocessor 700. As shown in FIG. 7, multiprocessor system 700 is apoint-to-point interconnect system, and includes a first processor 770and a second processor 780 coupled via a point-to-point interconnect750. In some embodiments, each of processors 770 and 780 may be someversion of processor 600 of FIG. 6.

Processors 770 and 780 are shown including integrated memory controller(IMC) units 772 and 782, respectively. Processor 770 also includes aspart of its bus controller units point-to-point (P-P) interfaces 776 and778; similarly, second processor 780 includes P-P interfaces 786 and788. Processors 770, 780 may exchange information via a point-to-point(P-P) interface 750 using P-P interface circuits 778, 788. As shown inFIG. 7, IMCs 772 and 782 couple the processors to respective memories,namely a memory 732 and a memory 734, which may be portions of mainmemory locally attached to the respective processors.

Processors 770, 780 may each exchange information with a chipset 790 viaindividual P-P interfaces 752, 754 using point to point interfacecircuits 776, 794, 786, 798. Chipset 790 may optionally exchangeinformation with the coprocessor 738 via a high-performance interface739. In one embodiment, the coprocessor 738 is a special-purposeprocessor, such as, for example, a high-throughput MIC processor, anetwork or communication processor, compression engine, graphicsprocessor, GPGPU, embedded processor, matrix processor, or the like.

A shared cache (not shown) may be included in either processor oroutside of both processors, yet connected with the processors via P-Pinterconnect, such that either or both processors' local cacheinformation may be stored in the shared cache if a processor is placedinto a low power mode.

Chipset 790 may be coupled to a first bus 716 via an interface 796. Inone embodiment, first bus 716 may be a Peripheral Component Interconnect(PCI) bus, or a bus such as a PCI Express bus or another thirdgeneration I/O interconnect bus, although the scope of this disclosureis not so limited.

As shown in FIG. 7, various I/O devices 714 may be coupled to first bus716, along with a bus bridge 718 which couples first bus 716 to a secondbus 720. In one embodiment, one or more additional processor(s) 715,such as coprocessors, high-throughput MIC processors, GPGPU's,accelerators (such as, e.g., graphics accelerators or digital signalprocessing (DSP) units), matrix processors, field programmable gatearrays, or any other processor, are coupled to first bus 716. In oneembodiment, second bus 720 may be a low pin count (LPC) bus. Variousdevices may be coupled to a second bus 720 including, for example, akeyboard and/or mouse 722, communication devices 727 and a storage unit728 such as a disk drive or other mass storage device which may includeinstructions/code and data 730, in one embodiment. Further, an audio I/O724 may be coupled to the second bus 720. Note that other architecturesare possible. For example, instead of the point-to-point architecture ofFIG. 7, a system may implement a multi-drop bus or other sucharchitecture.

All or part of any component of FIG. 7 may be implemented as a separateor stand-alone component or chip, or may be integrated with othercomponents or chips, such as a system-on-a-chip (SoC) that integratesvarious computer components into a single chip.

Embodiments of the mechanisms disclosed herein may be implemented inhardware, software, firmware, or a combination of such implementationapproaches. Certain embodiments may be implemented as computer programsor program code executing on programmable systems comprising at leastone processor, a storage system (including volatile and non-volatilememory and/or storage elements), at least one input device, and at leastone output device.

Program code, such as code 730 illustrated in FIG. 7, may be applied toinput instructions to perform the functions described herein andgenerate output information. The output information may be applied toone or more output devices, in known fashion. For purposes of thisapplication, a processing system includes any system that has aprocessor, such as, for example; a digital signal processor (DSP), amicrocontroller, an application specific integrated circuit (ASIC), or amicroprocessor.

The program code may be implemented in a high level procedural or objectoriented programming language to communicate with a processing system.The program code may also be implemented in assembly or machinelanguage, if desired. In fact, the mechanisms described herein are notlimited in scope to any particular programming language. In any case,the language may be a compiled or interpreted language.

One or more aspects of at least one embodiment may be implemented byrepresentative instructions stored on a machine-readable medium whichrepresents various logic within the processor, which when read by amachine causes the machine to fabricate logic to perform the techniquesdescribed herein. Such representations, known as “IP cores” may bestored on a tangible, machine readable medium and supplied to variouscustomers or manufacturing facilities to load into the fabricationmachines that actually make the logic or processor.

Such machine-readable storage media may include, without limitation,non-transitory, tangible arrangements of articles manufactured or formedby a machine or device, including storage media such as hard disks, anyother type of disk including floppy disks, optical disks, compact diskread-only memories (CD-ROMs), compact disk rewritable's (CD-RWs), andmagneto-optical disks, semiconductor devices such as read-only memories(ROMs), random access memories (RAMS) such as dynamic random accessmemories (DRAMs), static random access memories (SRAMs), erasableprogrammable read-only memories (EPROMs), flash memories, electricallyerasable programmable read-only memories (EEPROMs), phase change memory(PCM), magnetic or optical cards, or any other type of media suitablefor storing electronic instructions.

Accordingly, embodiments of this disclosure also include non-transitory,tangible machine-readable media containing instructions or containingdesign data, such as Hardware Description Language (HDL), which definesstructures, circuits, apparatuses, processors and/or system featuresdescribed herein. Such embodiments may also be referred to as programproducts.

Visual Fog Architecture

FIG. 8 illustrates an example embodiment of an architecture 800 forvisual fog nodes. In some embodiments, for example, fog nodearchitecture 800 may be used to implement the functionality of fog nodes810 in a visual fog network or system (e.g., visual fog system 100 ofFIG. 1). A fog node 810, for example, can include any node or componentthat ranges from the edge of a network to the cloud, inclusively.

In the illustrated embodiment, fog node 810 includes various applicationprogramming interfaces (APIs) that provide fundamental capabilities forfog node 810, such as auxiliary API 820, primitive vision API 830, andstorage API 840. In some embodiments, for example, these APIs may beused or implemented by lower-level algorithm developers.

Auxiliary API 820 provides various fundamental functionality for fognode 810, such as security 822 a, communication 822 b, compression 822 c(e.g., codecs), and so forth.

Primitive vision API 830 provides fundamental vision processingcapabilities for fog node 810. For example, primitive vision API 830provides access to a plurality of vision kernels 832 that can be used toperform primitive vision operations (e.g., person or object detection,facial recognition). Primitive vision API 830 may also provide access tovarious machine learning and/or neural network frameworks (e.g., Caffe,OpenCV, TensorFlow).

Storage API 840 provides storage capabilities for fog node 810. In someembodiments, for example, storage API 840 may include a variety ofdatabases 842 for storing different types of visual data, such as graphdatabases, relational databases, array-based databases (e.g., TileDB),and so forth. In some embodiments, for example, the particular databaseused to store certain visual data may depend on the type of data, suchas raw visual data or pixels, compressed visual data, visual metadata,and so forth.

Moreover, fog node 810 further includes a vision application API 850that provides higher-level vision functionality, which may be used orimplemented by developers of vision applications. For example, visionapplication API 850 may include a privacy policy 852 that defines therequisite privacy treatment for all data and devices associated with avisual fog network. Vision application API 850 may also include a visionkernel management service 854 that provides access to a variety ofprimitive vision operations or vision kernels. In some embodiments, forexample, vision kernel management service 854 may retrieve visionkernels from a vision kernel repository. For example, if a particularvision application employs person detection functionality, vision kernelmanagement service 854 may retrieve the appropriate vision kernel forperforming person detection using the available hardware of theparticular fog node 810.

Fog node 810 further includes a vision analytics API 860 and query API870, which may be used by end-users or operators to perform visualanalytics and visual queries. For example, vision analytics API 860 mayperform inline (e.g. real-time) and/or offline processing of visualdata, application launching, scheduling, resource monitoring, and soforth. Vision analytics API 860 may also include a vision applicationmanagement service 862 that provides access to a variety of visionapplications (e.g., people searching/tracking, objectdetection/tracking, and so forth). In some embodiments, for example,vision application management service 862 may retrieve visionapplications from a vision application repository. In this manner, if anend-user wants to perform a people search, vision application managementservice 862 may retrieve an appropriate vision application for peoplesearching. In some embodiments, for example, a people search visionapplication may use vision kernels that perform person detectionfollowed by facial recognition. The end-user, however, can utilize thepeople search vision application without any knowledge of the underlyingvision kernels or vision operations used to implement the application.

Moreover, query API 870 provides an interface that enables end-users tosubmit visual search requests or queries. In some embodiments, forexample, query API 870 may support flexible visual queries in a varietyof syntaxes, such as natural language, functional syntax (e.g., usinglogical operators), relational syntax, and so forth. In someembodiments, query API 870 may further include a query primitiverepository 874 that contains the primitive operations that are supportedfor visual queries. Moreover, query API 870 may include a query compiler872 for compiling the visual queries into visual processing dataflowsthat can be executed by visual fog nodes.

FIG. 9-12 illustrate example embodiments of visual fog architectures.

For example, FIG. 9 illustrates an example visual fog architecture 900that includes cameras 902, sensors 904, local analytics framework 906,inline analytics framework 908, offline analytics framework 910, storage912, and presentation/interpretation framework 914. In the illustratedembodiment, for example, cameras 902 and/or sensors 904 may generatevisual data, such as images and/or video. The visual data may then beprovided to local analytics framework 906, which may be used to performpreliminary processing and analytics at the network edge (e.g., near thecameras 902 or sensors 904 that captured the visual data). The partiallyprocessed visual data may then be provided to inline analytics framework908 for further processing in real-time. In various embodiments, forexample, inline analytics may be performed by and/or distributed acrossany combination of fog devices or resources (e.g., mobile devices, IoTdevices, gateways, and/or the cloud). The resulting visual data and/ormetadata from inline analytics framework 908 may then be stored in datastorage 912. Moreover, a visual search query may be subsequentlyreceived by presentation/interpretation framework 914 (e.g., from anend-user). Accordingly, presentation/interpretation framework 914 mayinteract with data storage 912 and/or inline analytics framework 908 todetermine whether a response to the query can be formulated based on thevisual data and/or metadata that has already been processed orgenerated. If further processing needs to be performed to respond to thequery, however, presentation/interpretation framework 914 may interactwith offline analytics framework 910 to perform further offlineprocessing of the visual data. In various embodiments, for example,offline analytics may be performed by and/or distributed across anycombination of fog devices or resources (e.g., mobile devices, IoTdevices, gateways, and/or the cloud). Accordingly, based on theinformation obtained either from data storage 912, inline analyticsframework 908, and/or offline analytics framework 910,presentation/interpretation framework 914 may then respond to the visualquery.

FIG. 10 illustrates an example visual processing pipeline 1000associated with a visual fog architecture. In the illustrated example,visual data 1002 may first be captured by cameras and/or visual sensors,and the visual data 1002 may then be processed to perform certain visualfunctions 1004 (e.g., face detection) and/or other analytics, resultingin a set of visual metadata 1012 that may be stored in data storage1010. Moreover, an end-user may subsequently submit an ad hoc searchquery 1006 associated with the visual data 1002, and a querycompiler/interpreter 1008 may then compile the query into a visualprocessing dataflow that can be executed (e.g., using available fognodes or resources) in order to respond to the query. In some cases, forexample, it may be possible to formulate a query result 1016 based onthe processing that has already been completed. For example, in somecases, the query result 1016 may be formulated by applying appropriatelogic operations 1014 on the existing visual metadata 1012 that hasalready been generated. In other cases, however, further visualprocessing and/or functions 1004 may need to be performed on the visualdata 1002 in order to formulate the query result 1016. In either case,the compiler/interpreter 1008 may generate a requisite vision processingdataflow for responding to the query, and the resulting visionprocessing dataflow may then be executed in order to formulate the queryresult 1016.

FIG. 11 illustrates another example visual fog architecture 1100. In theillustrated embodiment, visual data captured by cameras 1140 b isprovided to a distributed runtime environment 1120, which performsinitial pre-processing on the visual data in real-time (e.g., when thevisual data is first captured rather than in response to a query). Theresulting visual data or metadata generated by the distributed runtimeenvironment 1120 is then stored in data storage 1130.

Separately, visual search queries containing user-defined visionfunctions (UVFs) 1104 a-c are received from end-users 1102 of visual fog1100. A UVF 1104 received from an end-user 1102 is first processed by acompiler 1110 in order to generate a vision dataflow graph for executingthe UVF. Accordingly, the vision dataflow graph is then executed by thedistributed runtime environment 1120 in order to generate a result forthe UVF 1104. In some embodiments, for example, the distributed runtimeenvironment 1120 may determine the result using existing visual metadatathat has already been generated (e.g., from the initial or real-timeprocessing of the original visual data), and/or by performing furtheranalysis on the visual data (e.g., by executing a particular visionapplication 1150). The result obtained from execution of the UVF 1104may then be provided back to the requesting end-user 1102.

Further, in various embodiments, the distributed runtime environment1120 may perform the described visual data processing (e.g., initialpre-processing and/or UVF processing) by scheduling or distributingvision workloads across the available fog devices or resources 1140(e.g., cloud servers 1140 a, cameras 1140 b, mobile devices, IoTdevices, gateways, and/or other fog/edge devices).

FIGS. 12A-B illustrate another example visual fog architecture 1200. Inthe illustrated embodiment, visual fog architecture 1200 includes anetwork of fog devices 1216, including cameras or visual sensors 1216 a,gateways 1216 b, and cloud servers 1216 c. The cameras or visual sensors1216 a, for example, are used to capture visual data 1217. Moreover, acomputer vision expert 1202 can develop an imperative vision program1203 that leverages the captured visual data 1217. The vision program1203, for example, may be implemented using programming andcomposability frameworks 1208 and 1210 to define vision processingdataflows 1209 and generate vision processing workloads 1211.

In the illustrated embodiment, for example, the vision program 1203leverages a distributed runtime environment 1214 to process visual data1217 captured in visual fog 1200. The distributed runtime environment1214, for example, can perform visual data processing using thecollection of available fog devices 1216 in visual fog 1200.

In some embodiments, for example, the distributed runtime environment1214 may be used to perform initial pre-processing on captured visualdata 1217 in real-time (e.g., when the visual data is first capturedrather than in response to a query). The resulting visual data ormetadata 1217 generated by the distributed runtime environment 1214 maythen be stored in a database or data storage 1218.

Moreover, a layperson or end-user 1204 may subsequently submit adeclarative query 1205 associated with visual data 1217 captured byvisual fog 1200. The declarative query 1205 is processed by a visualquestion answering (VQA) system 1206, which uses a compiler orinterpreter to generate a dataflow 1209 for responding to the query. Insome cases, for example, it may be possible to respond to query 1205using existing visual metadata 1217 that has already been generated(e.g., during the initial or real-time processing of the original visualdata 1217 and/or during the processing associated with prior queries1205). In other cases, however, further processing may need to beperformed on the visual data 1217 in order to respond to the query 1205.In either case, an appropriate dataflow 1209 for responding to the query1205 may be generated, and the resulting dataflow 1209 may be furtherpartitioned into one or more underlying vision processing workloads1211. Moreover, based on the resource availability 1215 of fog devices1216 in the distributed runtime environment 1214, a schedule 1213 fordistributing the workloads 1211 across the available fog devices 1216may be generated. Accordingly, the respective workloads 1211 may then bedistributed across the fog devices 1216 based on the generated schedule1213, and each fog device 1216 may execute its respective workload(s)1211. In this manner, the dataflow 1209 for responding to the query 1205is executed by the various fog devices 1216 using a distributedapproach. A response to the query 1205 may then be provided to theend-user 1204, and the resulting visual metadata 1217 may be stored indatabase 1218 for responding to subsequent queries.

Visual Question Answering (VQA)

FIG. 13-14 illustrate example embodiments associated with a visualquestion answering (VQA) framework. In some embodiments, for example, avisual fog architecture may implement a VQA framework to provide aflexible and efficient interface for end-users to submit ad hoc visualsearch queries. In visual processing systems, for example, the abilityto submit a query to search large data sets in an efficient manner(e.g., millions of images) and identify a subset of relevant images orrelated information is important. Existing visual processing solutionsare implemented using rigid or inflexible approaches, however, and areunable to search visual data efficiently. Accordingly, the visualquestion answering (VQA) framework of FIGS. 13 and 14 can be used toalleviate the deficiencies of existing solutions.

In some embodiments, for example, a VQA framework may support flexibleor ad hoc visual search queries using a variety of syntaxes, such asnatural language, functional syntax (e.g., using logical operators),relational syntax, and so forth. Accordingly, when a visual search queryis received from a user, the query may be compiled into a visualprocessing dataflow that can be distributed across and executed by thevarious fog nodes in a visual fog architecture. In this manner,end-users can perform complex searches on large sets of visual datawithout any knowledge of the underlying architecture or processingrequired to execute the searches.

Moreover, in some embodiments, users or developers may be capable ofdefining custom vision functions that can be used in visual searchqueries, referred to as user-defined vision functions (UVFs). As anexample, a UVF could be defined for visually equivalency, or performing“equal” operations on visual data. Many ad hoc visual queries, forexample, require information related to the same object or person to beidentified or grouped together. Identifying the same object or personacross different images or video streams, however, can be challenging.In some embodiments, for example, this task may require featureextraction to be performed across multiple cameras. The respectivefeatures extracted from each camera often differ, however, and not allcameras have the same field of view, and thus certain features may besuccessfully extracted from some cameras but not others. Accordingly, insome embodiments, a user may implement a UVF to define how visualequivalency or “equal” operations are to be performed on visual data. Insome embodiments, for example, a UVF for visual equivalency may defineobjects as “equal” if their feature vectors are “close enough” to eachother, meaning the feature vectors must be sufficiently similar but donot have to be an exact match. Further, if feature vectors fromdifferent cameras are missing certain features, only the partialfeatures will be compared and the “close enough” definition will bescaled accordingly.

FIG. 13 illustrates an example embodiment of a visual question answering(VQA) pipeline 1300. In the illustrated example, a visual query 1302 isfirst received from an end-user, and a dataflow compiler 1304 is thenused to compile the visual query 1302 into a visual processing pipelineor dataflow 1308. In some embodiments, for example, the dataflowcompiler 1304 may use a library of vision kernel modules 1306 (e.g.,face recognition, pose recognition, object recognition, and so forth) togenerate the resulting visual processing dataflow 1308.

In some cases, for example, the visual processing dataflow 1308 mayleverage existing visual metadata that has already been generated andstored on data storage 1314. For example, an inline analytics framework1310 may be used to perform initial visual data processing in real-time(e.g., when visual data is first captured rather than in response to aquery), and an offline analytics framework 1312 may be used to performfurther visual data processing required for responding to searchqueries. Moreover, both the inline and offline analytics frameworks1310, 1312 may store their resulting visual metadata on data storage1314 for use in responding to subsequent visual search queries.Accordingly, in some cases, the visual processing dataflow 1308 for aparticular query 1302 may leverage existing visual metadata that hasalready been generated and stored on data storage 1314. In other cases,however, further processing may be required to respond to the query1302, and thus the visual processing dataflow 1308 may leverage theoffline analytics framework 1312 to perform additional processing. Ineither case, the visual processing pipeline or dataflow 1308 generatedby compiler 1304 is executed by the runtime environment in order togenerate a response to the visual query 1302.

FIG. 14 illustrates an example embodiment of a visual question answering(VQA) compiler 1400. In some embodiments, for example, compiler 1400 maybe used to compile VQA queries and/or user-defined vision functions(UVFs) 1402 into visual dataflow graphs 1417 that can be distributedacross and executed by the various fog nodes in a visual fogarchitecture.

In the illustrated embodiment, for example, UVFs 1402 are provided tothe compiler 1400 via a declarative API 1412. The compiler 1400 may thengenerate a graph of high-level vision operations 1415 that are requiredto execute the UVFs 1402, which may in turn be used to generate a visiondataflow graph 1417. In some embodiments, for example, the visiondataflow graph 1417 may be a directed acyclic graph (DAG) thatrepresents the visual processing pipeline required to execute theparticular UVFs 1402. Moreover, the compiler 1400 may use dataflowde-duplication to optimize the vision dataflow graph 1417, for example,by merging redundant portions of the dataflows of multiple UVFs 1402 toeliminate the redundancies.

In some embodiments, for example, compiler 1400 may generate the visiondataflow graph 1417 using information from the underlying vision modules1418 (e.g., hardware-specific information required for schedulingworkloads on heterogeneous hardware). The compiler 1400 may alsogenerate a number of database API calls to obtain visual data and/ormetadata required to execute the UVFs 1402. In various embodiments,these database API calls may either be part of, or separate from, thevision dataflow graph 1417. Moreover, in some embodiments, the compiler1400 may generate different results depending on the available visualmetadata.

In this manner, the resulting vision dataflow graph 1417 generated bycompiler 1400 can subsequently be executed by the runtime environment inorder to generate the results for responding to UVFs 1402.

Runtime

The visual fog paradigm envisions tens of thousands (or more)heterogeneous, camera-enabled edge devices distributed across theInternet and/or other large-scale networks, providing live sensing for amyriad of different visual processing applications, given taskparallelism and data parallelism. The scale, computational demands, andbandwidth needed for visual computing pipelines necessitates intelligentoffloading to distributed computing infrastructure, including the cloud,Internet gateway devices, and the edge devices themselves.

In some embodiments, for example, visual processing may be scheduled ordistributed across available fog devices based on various criteria,including device connectivity, device resource capabilities, deviceresource availability, workload type, privacy constraints, and so forth.Privacy constraints, for example, can be used to inform which contentshould be permitted and which should be filtered. In some cases,filtered content may be represented as lowered pixel depth, blurrypixels, or missing content filled in by approximation and inferenceusing neighboring non-filtered pixels. Further, machine learning can beleveraged to optimize scheduling decisions.

Workload deployment and/or migration can be implemented using ahot-pluggable runtime environment with universal plugin APIs. Forexample, conventional workload deployment/migration can be expensive, asit may require sending the runtime environment and toolchains to theassigned nodes. With hot-pluggable runtimes, however, workloads arehot-swappable (e.g., stop runtime, replace plugin, start runtime).

Moreover, a plugin or vision kernel repository can be used to facilitateworkload deployment. For example, a cloud-based or distributedrepository may be used to manage a collection of device andimplementation abstractions for each supported vision capability. Inthis manner, the repository can distribute the appropriate plugins orvision kernels to fog nodes based on their respective workloadassignments.

Incremental processing may be leveraged by a visual fog runtime tomaintain the state of any prior processing that has already beenperformed on visual data, enabling the results of the prior processingto be leveraged for subsequent visual processing and queries. Forexample, the results of any processing performed on visual data may berepresented as visual metadata, which may be stored for later use toavoid performing duplicative processing for subsequent visual queries.In this manner, when a visual query or UVF is received, the dataflowgenerated by a compiler may vary depending on the available metadatathat has already been generated and can be reused.

Metadata pre-provisioning can be used to reduce vision query latency bypre-processing visual data to complete common or frequent types ofprocessing in advance. In some embodiments, for example, a machinelearning model may be used to optimize the types of pre-processing thatis performed. For example, based on patterns of queries of the same typeor that involve similar types of processing, machine learning may beused to model the relationships of diverse queries, while also takingother modalities into account (e.g., weather, traffic). For example,metadata can be pre-provisioned by pre-scheduling certain types ofprocessing in advance based on the recent history of vision queries andUVFs. In this manner, patterns of common or similar vision workloads cantrigger pre-processing on newly captured visual data for those types ofworkloads to reduce query latency.

Similarly, stream prioritization or prefetching can be used to performlow-latency visual data loading or fetching based on historical trendsand/or workflows. For example, the vision processing history can be usedto prioritize certain data streams and/or pre-fetch data from memory fora particular application to improve query latency. Compared to metadatapre-provisioning, which involves expedited processing that is performedin advance, stream prioritization involves obtaining or moving visualdata to a location where it will likely be needed (e.g., from a camerato certain processing nodes).

Cached visual analytics can be used to optimize visual processing usingcached workflows, similar to incremental processing. For example, basedon cached information regarding particular visual streams that havealready been obtained and processed, along with the type of processingor workloads performed on those streams, subsequent vision processingdataflows may omit certain processing steps that have previously beenperformed and whose results have been cached. For example, a visualanalytics application involves a number of primitive vision operations.The volume of computation can be reduced, however, by caching visualanalytics results and reusing them for subsequent operations whenpossible. For example, when executing a visual analytics application,cached visual metadata resulting from prior processing can be searchedto avoid duplicative computation. In some embodiments, for example,cached visual analytics may be implemented as follows:

1. Each primitive vision operation is tagged or labeled using a cachetag;

2. For each instance or stream of visual data (e.g., each stored video),any corresponding visual metadata that has already been generated isstored in a metadata database or cache;

3. If there is a cache tag hit for a particular primitive visionoperation with respect to a particular instance or stream of visualdata, then the particular primitive vision operation can be omitted andinstead the existing visual metadata can be used; and4. If there is a cache tag miss, however, the particular primitivevision operation is executed and the resulting metadata is cached in themetadata database for subsequent use.

Tensor factorization can also be used for distributed neural networkinferencing in order to address the overfitting problem. For example,representative weights of consecutive neural network layers can utilizetensor factorization to “smooth out” the model.

FIGS. 15 and 16 illustrate example embodiments of device-centricscheduling for visual fog computing. In some embodiments, for example,visual fog scheduling may depend on (1) device resource capacities, and(2) workload resource requirements. While the former remains constantand consistent, the latter can vary depending on a device's hardwarespecifications and software toolchains. For example, in someembodiments, there may be multiple implementations of a facialrecognition capability that are respectively optimized for differenttypes of hardware, such as CPUs, GPUs, FPGAs, ASICs, and so forth. Inthis manner, multiple implementations of a single vision capability canbe leveraged to create an opportunity for further optimization in visualfog computing.

Accordingly, in order to address the heterogeneity of devices withdifferent types of hardware and/or software, the illustrated embodimentsimplement device-centric scheduling using a vision capabilitiesrepository. In some embodiments, for example, the vision capabilitiesrepository may include multiple implementations of a particular visioncapability that are optimized for different hardware and/or softwareenvironments. In this manner, vision workloads can be scheduled ordistributed across fog devices based on their respective types ofresources and capabilities, along with per-resource telemetryinformation that identifies resource availability.

The basic principle is to abstract capabilities (e.g., face detection,gesture recognition) from their underlying kernels/implementations(e.g., SIFT-based implementations, deep neural network implementations).This type of abstraction provides the flexibility to deploy an arbitraryvision capability on a per-device basis. For example, usingresource-based scheduling, heterogeneous resource types of different fogdevices can be considered as a whole in order to determine the optimaltask-to-device mapping across the various fog devices, and also identifythe corresponding vision capability implementations that each deviceshould use for its assigned tasks. Moreover, resource telemetry can beused to monitor resource availability of fog devices on a per-resourcebasis (e.g., CPU, GPU, FPGA, ASIC, and so forth) to further facilitateintelligent scheduling decisions. Further, the vision capabilityrepository hosts collections of implementations of different visioncapabilities, and may also provide a request-response service thatallows a device to request an available implementation of a particularvision capability.

In this manner, device-centric scheduling can be used to improveend-to-end (E2E) performance (e.g., latency and bandwidth efficiency)and scalability for visual fog computing.

FIG. 15 illustrates an example architecture 1500 for implementingdevice-centric scheduling in a visual computing system. In theillustrated embodiment, for example, visual computing architecture 1500includes users 1502, scheduling server 1504, vision kernel repository1506, and various types of fog devices 1510. A fog device 1510, forexample, can include any device ranging from the edge of a network tothe cloud, inclusively. In the illustrated embodiment, for example, fogdevices 1510 include cameras 1510 a, gateways 1510 b, and cloud servers1510 c.

In some embodiments, users 1502 may submit search queries for visualdata captured by cameras 1510 a. Moreover, in order to respond to thosequeries efficiently, scheduling server 1504 may schedule or distributevision processing workloads across the various fog devices 1510. In someembodiments, for example, scheduling server 1504 may perform intelligentscheduling decisions based on various criteria, such as the types ofresources in the fog (e.g., the heterogeneous types of resources of thevarious fog devices 1510), resource telemetry information (e.g., theavailability of fog resources on a per-resource-type basis), and theimplementations of vision capabilities that are available in the visioncapability repository 1506.

An example embodiment of the scheduling process, for example, isdescribed below in connection with FIG. 16.

FIG. 16 illustrates a flowchart 1600 for an example embodiment ofdevice-centric scheduling in a visual computing system. In someembodiments, for example, flowchart 1600 may be implemented using visualcomputing architecture 1500 of FIG. 15.

The flowchart may begin at block 1602 by collecting the available visioncapability implementations. In some embodiments, for example, thescheduling server continuously synchronizes the collection of availableimplementations of vision capabilities from the vision capabilityrepository.

The flowchart may then proceed to block 1604 to collect the resourcetelemetry of fog devices. In some embodiments, for example, thescheduling server may collect the resource availability of all fogdevices on a per-resource-type basis. For example, the scheduling servermay collect information regarding the resource availability of CPUs,GPUs, FPGAs, ASICs, and/or any other resource type across all fogdevices.

In this manner, based on the available vision capability implementationscollected at block 1602, and the resource telemetry informationcollected at block 1604, the scheduling server can subsequently schedulevision workloads based on the optimal task-to-device mapping in thevisual fog paradigm.

For example, the flowchart may then proceed to block 1606 to determinewhether a new vision workload has been received from a user. In someembodiments, for example, a user may submit a new visual query, whichmay require a new vision workload to be scheduled or distributed acrossthe fog devices.

If it is determined at block 1606 that a new vision workload has NOTbeen received, the flowchart may then proceed back to block 1602 tocontinue synchronizing the available vision capability implementationsand collecting resource telemetry information until a new visionworkload is received.

If it is determined at block 1606 that a new vision workload has beenreceived, the flowchart may then proceed to block 1608 to re-scheduleall pending workloads. In some embodiments, for example, receiving a newvision workload for a user may trigger the scheduling server tore-schedule all pending workloads to ensure the collective workloads aredistributed across the fog devices in the most efficient manner possible(e.g., based on the optimal task-to-device mapping).

In some embodiments, for example, scheduling may be performed based onvarious criteria, such as the types of fog resources that are available,telemetry information for those resources, and the vision capabilityimplementations that are available for those fog resources.

In some embodiments, for example, a schedule that adheres to theconstraints of multiple resource types can be determined using integerlinear programming (ILP). Integer linear programming (ILP) is amathematical optimization or feasibility technique for solving oroptimizing a mathematical model represented by linear relationships. Inparticular, ILP can be used to optimize a linear objective function,subject to additional linear equality and linear inequality constraints.As an example, an ILP problem can be expressed as follows:

minimize: c^(T)x (objective term) subject to: Ax ≤ b (inequalityconstraint) Cx = d (equality constraint) and: x ∈ {0, 1}^(K) (binaryconstraint).

Moreover, this ILP model can be used to determine an optimal schedule fthat satisfies a specified objective (e.g., total network utilization),while also adhering to other additional constraints (e.g., deviceresource constraints). In the above ILP model, for example, x presentsthe collection of possible schedules f, K is the length of x, theobjective term presents a scheduling objective to be minimized (e.g.,total network utilization), and the inequality/equality constraintspresent any additional constraints (e.g., device, resource, network,mapping, and/or privacy constraints). A device resource constraint, forexample, can be presented as an inequality constraint of the ILP model.For example, in order to take into account constraints of multipleresource types, they can be expended into multiple inequalities in theform of Ax b in the ILP model above.

Accordingly, based on the scheduling decisions, the scheduling serverassigns each fog device zero or more tasks. In some embodiments, forexample, a task may be specified in a tuple of the form t=(p, r), wherep denotes the vision capability and r denotes resource type (e.g.,p=face detection, r=Movidius processor).

The flowchart may then proceed to block 1610 to determine if an updatedworkload schedule is available. For example, after a new vision workloadis received and the pending workloads are re-scheduled, the schedulingserver may have an updated or improved workload schedule that needs tobe distributed to the fog devices. In some embodiments, however, thescheduling server may only update the workload schedule if the newlygenerated schedule is better or more efficient than the current workloadschedule.

If it is determined at block 1610 that the workload schedule has NOTbeen updated, the flowchart may then proceed back to block 1602 tocontinue synchronizing the available vision capability implementationsand collecting resource telemetry until the current workload schedule iseventually updated.

However, if it is determined at block 1610 that an updated workloadschedule is available, the flowchart may then proceed to block 1612 topush the updated schedule to all fog devices.

The flowchart may then proceed to block 1614 to receive requests fromfog devices for vision capability implementations. For example, each fogdevice may query the vision capability repository to requestimplementations of vision capabilities for the tasks assigned to theparticular fog device. In some embodiments, for example, the requestfrom a particular fog device may identify each of its assigned tasks t.

The flowchart may then proceed to block 1616 to identify the appropriatevision capability implementations for each fog device. In someembodiments, for example, the vision capability repository may be adictionary of key-value pairs in the form of (task t, implementation i),where an implementation i can be distributed in various forms (e.g., adynamic linking library in C/C++). Accordingly, based on the task(s) tspecified in the request from a particular fog device, the visioncapability repository identifies the corresponding implementation(s) ifor that fog device. In some embodiments, for example, the visioncapability repository identifies the optimal implementation of eachvision capability requested by a fog device based on the availableresources of that fog device.

The flowchart may then proceed to block 1618 to distribute theidentified vision capability implementations to each fog device. In thismanner, each fog device can then perform its assigned tasks using theappropriate vision capability implementations.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 1602 to continue scheduling vision workloads.

FIG. 17 illustrates an example embodiment of a runtime processingpipeline 1700 for a visual fog architecture. In the illustratedembodiment, for example, a raw stream of visual data 1701 (e.g., videoor images) captured by cameras or visual sensors in a visual fogarchitecture is provided as input to a stream ingress framework 1702.The stream ingress framework 1702 decodes the raw stream of visual data1701, and a decoded stream 1703 is then provided as input to adistributed pre-processing framework 1704. The distributedpre-processing framework 1704 then performs some preliminary processingusing certain fog resources at the network edge (e.g., near the camerasor sensors that captured the visual data), such as data pre-processing,filtering, and/or aggregation. The resulting filtered stream 1705 maythen be stored in data storage 1706 for subsequent use in responding tovisual search queries and/or user-defined vision functions (UVFs) 1709from end-users.

For example, end-users may subsequently submit visual search queriesand/or user-defined vision functions (UVFs) 1709 associated with thevisual data captured by the visual fog system. Accordingly, the UVFs1709 are provided to a UVF compiler 1710, which compiles the UVFs 1709into a vision dataflow graph 1711 that can be used to execute the UVFs.For example, the vision dataflow graph 1711 is provided to a distributedUVF execution framework 1712, which distributes or schedules workloadsassociated with the vision dataflow graph 1711 across the available fognodes in the visual fog architecture.

After the workloads finish executing, the distributed UVF executionframework 1712 generates an output 1713 resulting from execution of theUVFs 1709. For example, the output 1713 may include, or may be derivedfrom, a filtered stream of visual data and/or metadata 1707 generated byexecution of the UVFs 1709. Moreover, in some embodiments, the resultingstream of visual data and/or metadata 1707 may then be stored in datastorage 1706 for responding to subsequent visual search queries or UVFs.

Storage

As the volume of visual data generated in the real-world continues togrow, it is becoming increasingly common for visual data to be processedautomatically by computers rather than manually reviewed by humans. Dueto the increasing volume of visual data, however, data access has becomea bottleneck in visual data processing, as existing visual data storageapproaches suffer from various deficiencies.

To illustrate, image classification is a common visual data operationthat uses a neural network to identify the contents of an image. Forexample, in machine learning, a convolutional neural network (CNN) is atype of feed-forward artificial neural network where the input isgenerally assumed to be an image. CNNs are commonly used for imageclassification, where the goal is to determine the contents of an imagewith some level of confidence. For example, a CNN is first trained for aspecific classification task using a set of images whose object classesor features have been labeled, and the CNN can then be used to determinethe probability of whether other images contain the respective objectclasses.

Visual data (e.g., images, video) must first be loaded from a storagesystem before it can be processed by a CNN. In the past, the data accesslatency has typically been less than the CNN vision processing latency,allowing the data access to be performed during the CNN processing.However, as hardware and software optimizations continue to improve theperformance of CNN vision processing algorithms, the data access latencyof existing solutions has become the bottleneck. Moreover, existingsolutions typically store visual data in its original format rather thana format designed to aid with visual data processing, which furtherhinders performance.

Existing solutions are also unable to efficiently search visual data.For example, given a large data set (e.g., millions of images), theability to efficiently identify a subset of relevant images using aquery is important. The output of a CNN used for image classificationtypically includes a vector of values corresponding to the probabilityof various objects existing in an image. However, existing solutionstypically use this information for the task at hand and then discard it,requiring the processing to be repeated for subsequent use. For example,a CNN used to process an image with a dog and a cat may provide aprobability for both, but if the goal was to find images with dogs, theinformation about cats is typically lost or discarded, thus preventingfuture use. In this manner, a subsequent search for images that containcats would typically require the CNN to be run again on each image.

Accordingly, FIG. 18 illustrates an example embodiment of a visual datastorage architecture 1800 designed to provide efficient access to visualdata and eliminate the deficiencies of existing storage solutions usedfor visual data processing. In particular, storage architecture 1800provides efficient metadata storage for searching visual data, as wellas analysis-friendly formats for storing visual data.

In the illustrated embodiment, for example, storage architecture 1800includes a request server 1802 for receiving visual search queries froma client API 1801, a metadata database 1804, a visual compute library1806, and a persistent data storage 1810, as explained further below.

In some embodiments, for example, storage architecture 1800 may providea unified API 1801 for visual data access (e.g., for both visual dataand metadata). For example, visual data is commonly stored directly asfiles or in various types of databases (e.g., key-value, relational,and/or graph databases). Visual metadata is typically stored indatabases, for example, while images and videos are typically stored asfiles. Moreover, different types of file systems and databases provideAPI functions in various programming and/or query languages in order toenable users to access and store data. Accordingly, in some embodiments,visual storage architecture 1800 may be implemented with a unified API(e.g., JSON-based) that supports multi-modal queries for retrieving anytype of visual data from any storage source. In some embodiments, forexample, the unified API could be used to retrieve and/or combine visualmetadata and the original visual data from different storage locations.The unified API may also allow certain types of processing to beperformed on visual data before it is returned to the requesting user.Further, the unified API may allow users to explicitly recognize visualentities such as images, feature vectors, and videos, and may simplifyaccess to those visual entities based on their relationship with eachother and with other entities associated with a particular visionapplication.

Moreover, in some embodiments, a multi-tier lazy data storage approachmay be used to store visual data more efficiently (e.g., using long- orshort-term storage in different portions of the distributededge-to-cloud network). For example, multiple storage tiers may be usedto store visual data in different locations and for varying amounts oftime based on the type or importance of the visual data. In someembodiments, for example, video cameras may store all video capturedwithin the past day, gateways may store video with motion activitieswithin the past week, and the cloud may store video associated withcertain significant events within the past year.

Similarly, intelligent placement and aging of visual data across thestorage tiers may further improve the data storage efficiency (e.g.,determining where to store the visual data within the distributededge-to-cloud system, when the data should be moved from hot to warm tocold storage, and so forth). For example, visual data and metadata canbe distinguished and segregated based on data access patterns. Moreover,analysis friendly storage formats can be used to enable data to be readfaster when needed for vision processing. These various data formats maybe used to form the hot, warm, and cold tiers of data that can be mappedto various heterogeneous memory and storage technologies, based on theintended use and lifetime of the data. For example, storage tiers can beused to represent hot, cold, and optionally warm data. Hot data isaccessed frequently; warm data is accessed occasionally; and cold datais accessed rarely (if ever). Accordingly, cold data may be stored onslower hardware since low access latency for retrieval of the data isless important. In this manner, intelligent decisions can be used todetermine when and which portions of visual data should remain in thehot tiers and when it should be migrated to colder tiers, and whichstorage format should be used. For example, regions of interest mayremain in hot storage in the analysis friendly format much longer thanthe entire image/video.

Metadata database 1804 is used to store metadata in a manner thatfacilitates efficient searches of visual data. For example, whenperforming image classification using a CNN, the resulting image-objectrelationships or probabilities can be stored as metadata, and themetadata can be used for subsequent searches of the images, thuseliminating the need to repeatedly process the images for each search.For example, FIG. 19 illustrates an example of a vision processingpipeline 1900 that leverages metadata for searching visual data. In theillustrated example, a stream of incoming visual data is received from anetwork or file system at block 1902, vision processing is performed onthe visual data to derive metadata (e.g., using a CNN) at block 1904,the metadata is stored at block 1906, search queries for relevant visualdata are received at block 1908, and the search queries are thensatisfied using either the metadata obtained at block 1906 or additionalvision processing performed at block 1904.

In some embodiments, storage architecture 1800 may store visual metadataas a property graph to identify relationships between visual data, suchas images that contain the same object or person, images taken in thesame location, and so forth. For example, FIGS. 20 and 21 illustrateexamples of representing visual metadata using a property graph. In thismanner, visual metadata can be easily searched to identify theserelationships, thus enabling flexible search queries such as “find allimages taken at location Y that contain person A.”

Moreover, in some embodiments, metadata database 1804 of storagearchitecture 1800 may be implemented as a persistent memory graphdatabase (PMGD) to enable visual metadata to be searched moreefficiently. For example, using persistent memory (PM) technology, agraph database containing the visual metadata can be stored bothin-memory and persistently. In this manner, a persistent memory graphdatabase (PMGD) can be designed to leverage a memory hierarchy with datastructures and transactional semantics that work with the PM cachingarchitecture, reduce write requests (addressing PM's lower writebandwidth compared to DRAM), and reduce the number of flushes and memorycommits. This approach enables a graph database of visual metadata to besearched efficiently to identify relevant visual data.

Further, feature vector storage optimizations may be used to achievefast searching of visual metadata. For example, feature vectors can begenerated by various vision algorithms to identify regions or featuresof interest in visual data (e.g., faces, people, objects), and they aretypically represented as vectors of n-dimensional floating-point values.Finding the nearest neighbor for a given feature vector is a commonoperation that is computationally expensive, especially at the cloudscale due to billions of potential feature vectors (e.g., a featurevector for each interesting region of each image or video frame).Accordingly, in some embodiments, feature vectors may be represented andstored as visual metadata using an efficient format. For example, visualmetadata may be stored using an analysis-friendly array format thatindicates where the feature vectors reside, and an index may be built oninteresting dimensions within the metadata storage to narrow the searchspace.

Storage architecture 1800 also includes a separate data storage 1810 forstoring the visual data itself, such as images or videos. Segregatingthe metadata and visual data in this manner enables each type of data tobe mapped to the most suitable hardware in a heterogeneous system, thusproviding flexibility for the request server 1802 to identify the mostefficient way to handle a visual data request.

Moreover, storage architecture 1800 is also capable of storing visualdata on data storage 1810 using an analytic image format designed to aidin visual processing. In the illustrated embodiment, for example, visualcompute library (VCL) 1806 of storage architecture 1800 is designed tohandle processing on analytic image formats 1807 in addition totraditional formats 1808. For example, visual compute library 1806 canimplement an analytic image format 1807 using an array-based datamanagement system such as TileDB, as described further with respect toFIG. 22. The analytic image format 1807 provides fast access to imagedata and regions of interest within an image. Moreover, since theanalytic image format 1807 stores image data as an array, the analyticimage format 1807 enables visual compute library 1806 to performcomputations directly on the array of image data. Visual compute library1806 can also convert images between the analytic image format 1807 andtraditional image formats 1808 (e.g., JPEG and PNG). Similarly, videosmay be stored using a machine-friendly video format designed tofacilitate machine-based analysis. For example, videos are typicallyencoded, compressed, and stored under the assumption that they will beconsumed by humans. That assumption is often leveraged for videoencoding by eliminating information that human eyes and brains cannotprocess. Videos intended for machine-based processing, however, maybenefit from alternative storage methods designed to speed up the timerequired to retrieve full images or regions of interest within a videoor video frame, and even enhance the accuracy of machine-learning videoprocessing mechanisms.

FIG. 22 illustrates an example embodiment of an analytic image format2200 designed to aid in visual data processing. In some embodiments, forexample, storage architecture 1800 may use analytic image format 2200 tostore images in a format that facilitates visual data processing andanalysis.

Deep learning neural networks, such as CNNs, are frequently used forimage processing, including object/edge detection, segmentation, andclassification, among other examples. Images are typically read fromdisk during both training and inferencing, for example, using backgroundthreads to pre-fetch images from disk and overlap the disk fetch anddecode times with the other compute threads. However, compute cycles maystill be wasted reading the images from disk and decompressing/decodingthe images to prepare them for processing, thus reducing the overallthroughput (e.g., images/second) of an image processing system.

Moreover, traditional lossy image formats (e.g., JPEG) are designed tocompress image data by discarding high-frequency information that is notperceptible by humans. While the discarded information may bemeaningless to humans, however, it can improve the accuracy andperformance of deep learning neural networks used for image processing.

For example, images can be compressed either in a lossless or lossymanner. Lossless image compression preserves all the information in theimage, while lossy compression takes advantage of visual perception andstatistical properties to achieve better compression rates, but resultsin some data being lost. The JPEG compression algorithm is a commonlyused lossy algorithm that is often used for images on the web. The JPEGalgorithm is based on discrete cosine transforms (DCT), and discardshigh-frequency details that are not perceptible to the human eye, whichresults in much smaller image file sizes. However, in cases where exactimage reproduction is required, or when the image will be editedmultiple times, lossless compression is preferred. For example, PNG isan image file format that supports lossless compression using a bitmapimage. With PNG, images are transformed using a filter type on aper-line basis, and then compressed using the DEFLATE algorithm. Thereare numerous other image formats with similar technologies behind themthat are suitable for different applications and use cases. While atraditional lossless image format (e.g., PNG) could be used to retainall image data for image processing purposes, that comes at the cost ofa lower compression rate.

Further, images stored using traditional formats (e.g., JPEG and PNG)must be converted into an internal array format before any processingcan begin. For example, before any operations can be performed on imagesstored using traditional formats, the entire image file must be readfrom disk and decoded into an internal array format. In analytics,however, operations such as resizing and cropping are often performedbefore any sort of learning or understanding happens, thus renderingtraditional image formats inefficient for image processing andanalytics.

Accordingly, traditional image formats (e.g., JPEG and PNG) are designedfor human consumption, and performing operations on them is oftentime-consuming and inefficient. Moreover, lossy image formats (e.g.,JPEG) discard information that may be useful in machine learning, andthus are not well-suited for image processing. Moreover, while existingdatabase management systems could be used to store images, they are notdesigned for image data and thus do not store image data efficiently.

The analytic image format 2200 of FIG. 22 is designed to aid in imageprocessing and alleviate the deficiencies of existing image formats. Forexample, image format 2200 is implemented using an array-based datastorage format that is lossless and eliminates the expensive decodingprocess that is required for processing traditional image formats. Insome embodiments, for example, analytic image format 2200 could beimplemented using an array-based data storage manager such as TileDB.TileDB is a data management system designed for efficiently managinglarge volumes of scientific data represented using arrays. While TileDBis not specific to images, it is designed to provide fast access toarray-based data. Accordingly, in some embodiments, image format 2200can be implemented using TileDB to achieve the performance boost ofTileDB for image processing purposes.

In some embodiments, for example, analytic image format 2200 can beimplemented by defining how the pixel data of an image is stored andaccessed in an array-based format (e.g., using an array-based datastorage manager such as TileDB). In this manner, image format 2200enables efficiency in processing large images, which reduces the overalltime for image analytics. As visual understanding algorithms get fasterand the hardware to perform the algorithms gets better, the time toretrieve and process the images is becoming more and more significant.However, by using analytic image format 2200, storage and retrieval ofimages does not become a bottleneck in the visual processing pipeline.

For example, analytic image format 2200 allows an image to be stored asa lossless compressed array of pixel values. Accordingly, when imagedata is needed for processing, the image data does not need to bedecoded before being processed, as required for traditional imageformats. This improves the speed at which data is retrieved and madeusable, yet still provides some level of compression. While thisapproach requires images to be written to the analytic image format 2200prior to training or inference, the additional write overhead isminimal.

Moreover, because TileDB outperforms many array database managers forboth sparse and dense data access, it is an ideal choice forimplementing analytic image format 2200. In other embodiments, however,analytic image format 2200 can be implemented using any other type ofarray-based data manager or data format. The use of a fast, enhancedarray storage system such as TileDB enables image format 2200 toeliminate slow reads of images from disk, and remove the in-loopconversion of traditional image formats to arrays.

Image format 2200 is also beneficial in applications where subarrayaccesses are common, such as accessing regions of interest in an image.For example, an array data manager such as TileDB can be used to improvethe speed of common operations that are needed for image analytics, suchas resize and crop, by enabling fast subarray accesses.

FIG. 22 illustrates the process of converting an image into an analyticimage format 2200 using an array-based data manager such as TileDB. Inthe illustrated example, the original image is first received 2202 andis then divided into a plurality of tiles 2204 using an optimal tilesize, and the tiles are then compressed and written to memory on aper-tile basis 2206 using an array-based storage format.

In some embodiments, the optimal tile size for analytic operations canbe dynamically determined for each image. For example, in order todetermine the optimal tile size for a particular image, a random portionof the image may be selected and then processed using different tilesizes and compression algorithms in order to determine the ideal tilesize and compression for that image. Moreover, since image processingoperations are often postponed until the data is actually needed, thereis a period of time available to carry out the experimentation withoutimpacting performance.

An image that does not fit perfectly into tiles of the selected tilesize will have partially empty tiles that are padded with emptycharacters, as depicted in FIG. 22. In this manner, the original size ofthe image may be stored as metadata (e.g., height, width, and number ofchannels), and when the image is subsequently read from storage, themetadata can be checked to determine the actual dimensions of the imageto avoid reading the empty characters or padding.

For high-resolution images, image format 2200 improves the speed ofcommon operations such as reading and writing, as well as the speed ofoperations used in image analytics, such as cropping and resizing. Forexample, storing images using image format 2200 improves readperformance, as the images are compressed but not encoded, and thus donot need to be decoded when they are read from the file system. Inaddition, image format 2200 enables fast access to subarrays of imagepixels, making cropping a simple matter of reading a particular subarrayrather than reading the entire image and then cropping it to theappropriate size.

For example, FIG. 23 illustrates a graph 2300 comparing the performanceof analytic image format 2200 from FIG. 22 with the PNG image format,which is a traditional lossless image format. As shown by FIG. 23, theanalytic image format provides better performance than PNG for writes,reads, crops, and resizes. The largest improvement is seen in cropping,as the analytic image format allows only the pertinent information to beread from the file, rather than reading the entire image file and thencropping to the desired size. Accordingly, the performance improvementfor common data access and analytic operations demonstrates thatanalytic image format 2200 is highly beneficial for image processingpurposes.

FIG. 50 illustrates an example write processing flow 5000 fortraditional and analytic image formats. In the illustrated processingflow 5000, for example, raw pixel data 5002 can be written to disk 5010using either a traditional image format or an analytic image format. Thetop path of processing flow 5000 illustrates the flow for writingtraditional image formats (e.g., PNG), while the bottom path illustratesthe flow for writing analytic image formats.

With respect to traditional image formats, for example, raw pixel data5002 is encoded 5004, compressed 5006, and then stored 5010. Withrespect to analytic image formats, however, raw pixel data 5002 iscompressed 5008 and then stored 5010, but the encoding step is omitted.While the resulting analytic image format may result in a larger filesize on disk, the latency of data access operations (e.g., writes) andother image operations may be reduced.

Moreover, the read processing flow for traditional and analytic imageformats may be implemented as the reverse of the write processing flow5000. For example, with respect to traditional image formats, theencoded/compressed data is read from disk, decompressed, and thendecoded into the original image. With respect to analytic image formats,the compressed data is read from disk and then decompressed into theoriginal image, but the decoding step is omitted since the encoding stepwas omitted during the write processing flow 5000.

TABLE 1 illustrates an example analytic image format schema. In someembodiments, for example, the analytic image format schema of TABLE 1could be implemented using an array-based database manager (e.g.,TileDB) to store images as dense arrays.

TABLE 1 Example analytic image format PARAMETER TYPE EXAMPLE VALUE cellorder fixed row major tile order fixed row major number of dimensionsfixed  2 dimension names fixed “height”, “width” number of attributesfixed  1 compression fixed LZ4 array height variable 3534  array widthvariable 5299  domain variable [0, 3533, 0, 5298] tile height variable589 tile width variable 757

The schema of TABLE 1 specifies parameters about the array that can beused to arrange the image data. Moreover, some parameters of theanalytic image format are fixed, while others are determined on aper-image basis. For example, images have only two dimensions, a heightand a width, thus fixing the number of dimensions as well as the namesof the dimensions. The number of attributes is set to one, which meanseach cell holds the blue, green, and red (BGR) values for thecorresponding pixel. All three values are generally read together, as apixel is defined by all three values. In other embodiments, however, thecolor values may be stored separately. The intra-tile and array-leveltile ordering is fixed to be row major. Row major order means that datais written and read from left to right in rows within a tile, and tilesare written and read in the same manner. This information allows thearray database to efficiently perform subarray reads.

The dimensions and domain of the array depend on the resolution of theoriginal image and therefore are calculated dynamically on a per-imagebasis. Since images often do not have an evenly divisible number ofpixels in one or both dimensions, this occasionally results in thedimensions of an array not matching the original resolution of theimage. This is reflected in TABLE 1, where the array height is one pixellarger than the image height. To make up the difference between an imagedimension and an array domain, the image is padded with emptycharacters. An example of this can be seen in FIG. 22, where the whitespace within certain tiles corresponds to empty characters. In theactual array, the size of the array domain is increased by a singlepixel when needed. The original size of the image (height, width, andnumber of channels) is stored as metadata by default. When an image inthe analytic format is read, the metadata is read first in order todetermine the dimensions of the image, thus avoiding reading the emptycharacters.

Tile extents depend on the array dimensions and are calculated once thearray dimensions are known. All tiles have the same height and width.The optimal number of tiles may vary based on image content andresolution, and thus in some embodiments, the optimal number of tilesmay be determined on a per-image basis. For example, in order todetermine the best tile size, a portion of the image may be randomlyselected and tested using different tile sizes and compressionalgorithms to determine the best combination for that image. Since alloperations are postponed until the data is actually needed, there is aperiod of time to carry out the experimentation that does not affect theperformance. In other embodiments, however, a predefined minimum numberof tiles per dimension (e.g., 4 tiles per dimension) may be used as abasis to determine tile height and width.

The compression algorithm used to compress the analytic image data has afixed default (e.g., the LZ4 compression algorithm), but othercompression algorithms can be set manually.

FIG. 51 illustrates an example embodiment of a visual compute library(VCL) 5100 for traditional and analytic image formats. For example, VCL5100 provides an interface through which a user can interact with theanalytic image format as well as traditional image formats.

When a user creates an analytic image using VCL 5100, the analytic imageschema is automatically set using the parameters described above inTABLE 1. VCL 5100 then creates a layer of abstraction with functioncalls of TileDB 5102 (e.g., the array-database manager used in theillustrated embodiment) combined with specialized transformationoperations to provide an interface to the analytic image. VCL 5100 alsoextends the abstraction layer to OpenCV 5104, providing support for PNGand JPEG image formats. VCL 5100 uses OpenCV 5104 to perform both I/Oand transformation operations on images that are stored in either PNG orJPEG format. For images stored in the analytic format, VCL 5100 handlesthe transformation operations and uses TileDB 5102 for I/O operations.

To initially store an image in the analytic format, the raw pixel dataof an image is passed to VCL 5100 in some manner (e.g., as a path to aPNG or JPEG file stored on disk, an OpenCV matrix, a buffer of encodedpixel data, a buffer of raw pixel data, and so forth). This data isconverted to a raw pixel buffer in order to write to the analyticformat. Since the TileDB array schema for images has already been set atthis point (e.g., using the parameters of TABLE 1), the TileDB functionscan be used to write the data to disk.

Reading an image in the analytic format requires the metadata to be readfirst to determine the original image resolution. This ensures that onlyimage data is read and that empty characters are ignored. The rawanalytic-format or TileDB data is read into a buffer, keeping the datain the order in which it was written, which is referred to as “tileorder” (e.g., as illustrated in FIG. 52). This is because if the datanever needs to be returned to the user (e.g., if the user just wants tomanipulate it and write it out again), it is faster to use the tileorder buffer. In cases where the data is to be returned to the user,however, the buffer is re-ordered into image order, which results in abuffer that has each row of the image sequentially (e.g., as illustratedin FIG. 52). Image order, for example, is typically expected by otherprograms such as OpenCV 5104.

Crop, another frequently used operation in image processing, is used toretrieve a region of interest within an image for processing. Ratherthan reading the entire image and then selecting a sub-region (as isrequired for traditional image formats), the analytic or TileDB cropfunction uses the crop parameters to specify a subarray of the analyticimage data. The subarray is then the only portion of the image that isread.

Resize, another frequently used operation in image processing, is usedto resize the dimensions of an image (e.g., to either a smaller orlarger size). The TileDB resize occurs after the image has been read,but while the data is still in tile order. VCL 5100 implements a versionof resize for TileDB that uses a bilinear interpolation, following theOpenCV default. For example, in a linear interpolation, a new value iscalculated based on two points; bilinear interpolation does this in twodifferent directions and then takes a linear interpolation of theresults. These points are identified by (row, column) in the originalimage. Given the data is in tile order, it is necessary to identifywhich tile each point is part of in order to locate the value of thatpoint in the buffer. The resulting resized image buffer is in imageorder, although other approaches may be used to keep it in tile order.

Compression/Compressive Learning

The performance of large-scale visual processing systems can be improvedusing efficient compression algorithms and techniques for storing andprocessing visual data. The compression approaches of existing visualprocessing solutions, however, suffer from various deficiencies. Forexample, existing solutions require visual data to be fully decompressedbefore any processing can be performed (e.g., using deep learning neuralnetworks). Moreover, existing solutions typically compress and storeimages individually, thus failing to leverage the potential compressivebenefits of collections of similar or related images with redundantvisual data.

Accordingly, this disclosure presents various embodiments forcompressing and processing visual data more efficiently. In someembodiments, for example, neural networks can be designed to operate oncompressed visual data directly, thus eliminating the need to decompressvisual data before it can be processed. Moreover, context-awarecompression techniques can be used to compress visual data and/or visualmetadata more efficiently. For example, context-aware compression can beused to compress distinct instances of redundant visual data moreefficiently, such as a group of images taken close in time, at the samelocation, and/or of the same object. Similarly, context-awarecompression can be used to compress visual metadata more efficiently(e.g., using a context-aware lossless compression codec). In someembodiments, for example, visual metadata could be compressed bypre-training a convolutional neural network (CNN) to classify visualmetadata, replacing long strings of visual metadata with shorter symbols(e.g., pre-defined human codes), performing multi-scale de-duplicationon the visual metadata, and finally compressing the resulting visualmetadata using a compression algorithm (e.g., the LZ77 losslesscompression algorithm or another similar alternative).

FIGS. 24A-C and FIG. 89 illustrate example embodiments of a multi-domaincascade convolutional neural network (CNN). In distributed visualanalytics systems, for example, image and video is often compressedbefore transmission (e.g., from the pixel domain to a compresseddomain), and subsequently decompressed after transmission (e.g., back tothe pixel domain) before any processing can be performed, such as deeplearning using neural networks. As an example, image and video capturedby edge devices may be compressed and transmitted to the cloud, and thendecompressed by the cloud before any further processing begins.

This approach suffers from various disadvantages. First, extracomputation is required to fully decompress the visual data before itcan be processed, thus significantly increasing the total processingtime (e.g., by up to 100% in some cases). For example, before processingcan be performed, the visual data must be fully decompressed back to thepixel domain using hardware or software decoding. Accordingly, giventhat not all processors include built-in video decompressionaccelerators, decompression may incur an additional cost for videoanalytics.

Next, extra bandwidth is required to transmit the decompressed databetween separate processing components (e.g., between a decompressionengine and an analysis engine), thus significantly increasing bandwidthusage (e.g., by up to 20 times in some cases).

Moreover, the requirement to fully decompress visual data prior toprocessing precludes the ability to leverage a fully distributed neuralnetwork in the edge-to-cloud sense. For example, the use of distributedanalytics to process visual data exclusively in the pixel domainrequires the visual data to be analyzed at multiple scales.

Further, relying on the cloud to perform processing on visual datacaptured by edge devices often results in wasted transmission bandwidth,as many images or videos transmitted from the edge to the cloud may notcontain any objects or features of interest. In many cases, for example,it could be possible to perform object detection and classificationcloser to the network edge (e.g., near the sensors that capture thevisual data) using lower complexity analytics algorithms, potentiallysaving the transmission cost of insignificant or unimportant data.

Accordingly, FIGS. 24A-C illustrate an example embodiment of amulti-domain cascade CNN 2400 that can be used to process visual data inthe compressed and pixel domains, thus eliminating the requirement todecompress visual data before it can be processed. In this manner,multi-domain cascade CNN 2400 can be used to perform distributed visualanalytics in a visual fog system using compressed domain data as input.

In some embodiments, for example, multi-domain cascade CNN 2400 may be acascaded CNN that includes multiple decision stages. For example, in afirst or early decision stage, a subset of the compressed domain visualdata or features may be used (e.g., motion vectors) to attempt togenerate an early decision. If the visual data cannot be detected orclassified in the early stage, additional compressed domain data (e.g.,motion prediction residuals) may be provided as input to a subsequent orlate decision stage. Finally, for improved accuracy and/or in the eventthe late decision stage is unsuccessful, the visual data may be fullydecompressed and a final decision stage may be performed using thedecompressed visual data.

In the illustrated embodiment, for example, CNN 2400 includes an earlydecision stage (illustrated in FIG. 24A), a late decision stage(illustrated in FIG. 24B), and a final decision stage (illustrated inFIG. 24C). Moreover, CNN 2400 is designed to process compressed visualdata 2402 as input (e.g., video sequence data compressed with amotion-compensated predictive coding scheme such as H.264).

In some embodiments, for example, compressed visual data 2402 providedas input to CNN 2400 may first be partially decoded to separate andextract different syntax elements (e.g., motion vectors, macroblock (MB)coding modes, quantized prediction residuals), thus producing a subsetof partial compression data 2404.

As shown in FIG. 24A, in the early decision stage, the partialcompression data 2404 (e.g., motion vectors) is provided as input to afirst stage CNN 2405 a to attempt to identify an early decision 2406. Insome embodiments, the CNN processing may then terminate if an earlydecision can be made. For example, in some embodiments, the earlydecision stage may be performed by a fog or edge node near the sensorthat captured the visual data. Accordingly, if an early decision can bemade, it may be unnecessary to transmit additional visual data toanother node (e.g., in the cloud) for a subsequent processing stage,thus saving bandwidth and/or resources (e.g., energy) that wouldotherwise be required for the later stage. For example, assuming thegoal is to detect moving pedestrians using traffic cameras, if there isno motion detected, there likely are no moving objects. Accordingly, anearly decision can be made, and any further transmission or processingof the visual data can be aborted. In other embodiments, however, thesubsequent CNN processing stages of CNN 2400 may still be performed evenif an early decision can be made. Moreover, the complexity of the firststage CNN 2405 a may vary based on different use cases, resourceavailability, and so forth.

If the early decision stage is unable to detect or classify the partialcompression data 2404 using the first stage CNN 2405 a, CNN 2400 mayproceed to a late decision stage, as shown in FIG. 24B. In the latedecision stage of FIG. 24B, for example, additional compression data2410 (e.g., motion prediction residuals) is evaluated using a secondstage CNN 2405 b to attempt to determine a late decision 2408.

Finally, for improved accuracy and/or in the event the late decisionstage is unsuccessful (e.g., the late decision stage is unable to detector classify the additional compression data 2410 using the second stageCNN 2405 b), CNN 2400 may proceed to a final decision stage, as shown inFIG. 24C. In the final decision stage of FIG. 24C, for example, thecompressed visual data 2402 may be fully decompressed using adecompression engine 2412, and the decompressed visual data 2414 (e.g.,pixel domain data) may then be evaluated using a final stage CNN 2405 cto determine a final decision 2416.

Accordingly, the collective stages of multi-domain cascade CNN 2400 aredepicted in FIG. 24C, where an early stage is used to generate an earlydecision based on an initial subset of compressed domain data, and laterstages are used to generate re-fined or final decisions based onadditional compressed domain data and eventually pixel domain data.

The described embodiments of multi-domain cascade CNN 2400 providenumerous advantages. First, visual data (e.g., images or video) does notneed to be fully decompressed before its contents can be analyzed usingdeep learning neural networks, thus reducing memory usage andcomputation typically required for decoding or decompressing the visualdata. Next, the cascading approach of CNN 2400 avoids the need totransmit certain compressed data to the cloud, such as when an earlydecision can be reached by an edge or fog node, thus improving bandwidthusage. Finally, a large portion of the overall analysis often occurs inthe early decision stage, which typically involves a simplified CNN ormachine learning model, thus reducing the overall computationalcomplexity.

FIG. 89 illustrates a flowchart 8900 for an example embodiment of amulti-domain cascade convolutional neural network (CNN). In variousembodiments, for example, flowchart 8900 may be implemented using thevisual computing architecture and functionality described throughoutthis disclosure.

In the illustrated example, the cascaded CNN is designed to processvisual data captured by edge devices (e.g., sensors and/or cameras) inmultiple stages using a different CNN at each stage. For example, theearly stages may use CNNs primarily designed to processcompressed-domain data, while the later stages may use CNNs primarilydesigned to process pixel-domain data.

Moreover, in some embodiments, the respective stages may be performed bydifferent processing devices deployed between the network edge (e.g.,near the source of the visual data) and the cloud. For example, whenvisual data is captured, compressed, and transmitted from the edge tothe cloud, the respective nodes and/or processing devices along the pathof traversal may perform certain processing stage(s). In someembodiments, for example, processing devices near the network edge mayperform early processing stages using CNNs that primarily operate oncompressed-domain data, while processing devices in and/or near thecloud may perform later processing stages using CNNs that primarilyoperate on pixel-domain data. Moreover, processing devices in the fog(e.g., between the edge and the cloud) may perform processing stages inthe middle using CNNs that operate on compressed-domain data,pixel-domain data, and/or a combination of both.

In this manner, visual data can be processed in a distributed manner asit traverses the respective devices and nodes along the path from theedge to the cloud, without having to decompress the visual data at eachhop.

For example, given that edge devices (e.g., devices at or near thesource of the visual data) are typically resource-constrained devices,they may be designed to perform limited initial processing (e.g., usinglower-complexity algorithms) directly on the compressed visual data.

In some embodiments, for example, these “early-stage” devices may useCNNs that are trained to process certain types of compressed-domainfeatures, such as motion vectors, prediction residuals, transformcoefficients, quantization parameters, macroblock (MB) modes, and soforth. Motion vectors, for example, are used to represent motion thatoccurs between compressed video frames that contain similar content,while prediction residuals are used to represent the difference orresidual between similar video frames (e.g., after applying a motionvector). Transform coefficients are the coefficients of the particulartype of transform used to compress the data, such as a discrete cosinetransform (DCT), integer transform, continuous wavelet transform (CWT),fast fourier transform (FFT), and so forth. Quantization parametersserve to reduce the precision of certain portions or blocks of visualdata based on importance (e.g., low-frequency blocks such as backgroundsmay be represented with less precision without impacting humanperception). Macroblock (MB) modes refer to the types of transforms(e.g., DCT, integer, CWT, FFT) and parameters that are used to compressdifferent blocks of visual data.

Accordingly, the CNNs used by the “early-stage” devices may be trainedto analyze certain types of compressed-domain features, such as any ofthose discussed above. In this manner, these “early-stage” devices canperform some level of initial processing without having to decompressthe visual data (e.g., using certain features of the compressed data).Moreover, in some embodiments, certain types of metadata that may beincluded in the compressed bitstream may also be used in the“early-stage” analysis. Further, in some embodiments, if an edge devicethat originally captured the visual data has sufficient processingcapabilities (e.g., a smart-camera), that device may perform someinitial processing on the raw visual data before it is compressed fortransmission. Moreover, when the visual data is subsequently compressedand transmitted to other devices for subsequent CNN processing stages,metadata generated from the initial processing may be included as partof the compressed visual data.

Moreover, if these “early-stage” devices are able to sufficientlyinterpret the visual data based on the initial processing, subsequenttransmission and/or processing of the visual data may be avoided. Forexample, with respect to a surveillance application, if an early-stagedevice is able to conclude that there is no movement within the capturedvisual data, the device may conclude that no further processing isnecessary. However, if the early-stage device either detects movement oris unable to reliably determine whether there is any movement, theearly-stage device may send some or all of the compressed data to thenext processing device or node in the network, which may perform asubsequent stage of processing using a different CNN.

In this manner, after a particular device completes an associatedprocessing stage, the device may forward certain data along for furtherprocessing, or the device may terminate the processing altogether,depending on whether the device was able to definitively reach adecision and/or interpret the visual data. For example, if the device isunable to definitively reach a decision, the device may forward somecertain visual data to the next device or node, such as some or all ofthe compressed data, certain decompressed data, and/or any relevantmetadata that was generated during the current or preceding processingstages. In some cases, for example, even when a device is unable todefinitively interpret the visual data, the device may be able to drawcertain conclusions and/or derive certain information associated withthe visual data, which it may represent as visual metadata. Accordingly,if helpful, this visual metadata may also be forwarded to the processingdevices used to perform subsequent stages.

In this manner, the CNNs associated with subsequent stages may bedesigned to process additional features associated with the visual data(e.g., additional types of compressed-domain data, visual metadatagenerated during preceding stages, and eventually raw uncompressedvisual data) using algorithms that are progressively more complex as thevisual data flows through more sophisticated processing nodes in or nearthe cloud. Eventually, if the processing performed in preceding stagesis inconclusive or incomplete when the visual data reaches a device inor near the cloud (e.g., a cloud-based server), the device may fullydecompress the visual data in order to process the raw visual data usinga more sophisticated, computationally-intensive CNN.

In the example illustrated by FIG. 89, flowchart 8900 implements anexample embodiment of a cascaded CNN. The flowchart begins at block 8902by capturing visual data using one or more sensors, such as camerasand/or other types of vision sensors, which may be deployed at or nearthe “edge” of a network.

The flowchart then proceeds to block 8904, where the visual data iscompressed by a first device. For example, the first device may be oneof a plurality of devices in a distributed computing network, such as asensor that captured the visual data and/or another edge device nearthat sensor. Moreover, the first device may compress the visual datausing any suitable compression technique(s) (e.g., H.264).

The flowchart then proceeds to block 8906, where the compressed data istransmitted from the first device to, and subsequently received by,another device in the network (e.g., a nearby edge device such as anedge gateway).

The flowchart then proceeds to block 8908, where the received data isprocessed using an associated CNN. For example, each device thatreceives some form of the compressed visual data may perform aparticular stage of processing on the compressed data. Moreover, eachstage of processing may be performed using a different convolutionalneural network (CNN) trained to analyze different types of visual data(e.g., compressed visual data, raw visual data, and/or some combinationof both).

For example, certain devices at or near the network edge, and/or in thefog, may use CNNs that are designed to operate on compressed datadirectly, such as by analyzing certain types of compressed data features(e.g., motion vectors, prediction residuals, transform coefficients,quantization parameters, and/or macroblock coding modes). In someembodiments, for example, the CNNs used by different edge devices may berespectively designed to operate on different types of compressed datafeatures. Moreover, in some embodiments, the different types ofcompressed data features may be respectively generated and/or providedby different sources (e.g., sensors or other devices).

As another example, certain devices in the fog (e.g., somewhere betweenthe edge and cloud) may use CNNs that are designed to operate oncompressed data, uncompressed data, and/or some combination of both,depending on their processing capabilities. Finally, certain devices inor near the cloud may use CNNs that are designed to operate on partiallydecompressed data and/or fully decompressed visual data.

Accordingly, when a particular device receives the compressed visualdata, the device may perform a current stage of processing using thecurrent CNN associated with that device.

The flowchart then proceeds to block 8910, where an output is obtainedfrom the CNN for the current processing stage. In some cases, forexample, the output from the CNN may indicate certain informationassociated with the visual data, such as the likelihood of the visualdata containing certain features, objects, actions, movements,characteristics, scenarios, conditions, and so forth.

The flowchart then proceeds to block 8912 to determine if the processingassociated with the visual data is complete (e.g., based on the outputfrom the CNN(s) used in the current and/or preceding processing stages).

For example, if the CNN in the current processing stage was unable tosufficiently interpret the visual data for purposes of derivingrequisite information and/or reaching certain processing decision(s),the processing associated with the visual data may be incomplete.Accordingly, the flowchart proceeds back to block 8906, where thecompressed data is transmitted to other processing device(s) in thenetwork to perform additional stages of processing using different CNNs.

The flowchart repeats in this manner as the compressed visual data istransmitted across the respective processing devices from the edge tothe cloud, until it is eventually determined at block 8912 that theprocessing is complete. For example, if the CNN in the currentprocessing stage was able to sufficiently interpret the visual data forpurposes of deriving requisite information and/or reaching certainprocessing decision(s), the processing associated with the visual datamay be complete, and the flowchart may proceed to block 8914 to output aresult associated with the visual data. For example, the result mayindicate the particular information and/or decisions that were derivedbased on the processing associated with the visual data.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 8902 to continue capturing and processing visual data.

FIGS. 25-31 illustrate the use of butterfly operations to implement amulti-domain convolutional neural network (CNN) that is capable ofprocessing both raw and compressed visual data.

As discussed above, many visual analytics systems require visual data tobe fully decompressed before any visual processing can be performed(e.g., using deep learning neural networks), which is an approach thatsuffers from various inefficiencies, including higher processinglatency, additional transmission bandwidth, and so forth. Accordingly,this disclosure presents various embodiments of a deep learning neuralnetwork that is capable of analyzing compressed visual data directly. Inparticular, the described embodiments present a multi-domain CNN thatuses butterfly operations to enable visual data processing in either thepixel domain or the compressed domain.

To illustrate, existing deep learning CNNs (e.g., inception or ResNetCNN models) typically repeat an inner module multiple times, and theinner module aggregates the results from multiple convolution layersand/or the original input at the end (analogous to a bottleneck). Forexample, FIGS. 25A-B illustrate a traditional 27-layer inception modelCNN 2500, and FIGS. 26 and 27 illustrate example inner modules 2600 and2700 for an inception model CNN. In particular, FIG. 26 illustrates aninner module 2600 implemented without dimension reduction, while FIG. 27illustrates an inner module 2700 implemented with dimension reduction.These CNN implementations are designed to process visual data in thepixel domain (e.g., raw or uncompressed visual data).

FIGS. 28 and 29, however, illustrate example CNN inner modules 2800 and2900 that use butterfly operations to enable multi-domain visual dataprocessing in either the pixel domain or the compressed domain.Butterfly operations, for example, are partial inverse transforms thatcan be used when transforming compressed domain data (e.g., DCT domaindata) back to the pixel domain. Accordingly, by incorporating butterflylayers into a CNN, the CNN can be provided with compressed visual dataas its original input, and as the compressed data is processed by thesuccessive CNN layers, the compressed data is at least partiallyinversely transformed using the butterfly layers in the CNN.

FIG. 28 illustrates an inner CNN module 2800 implemented withoutdimension reduction, while FIG. 29 illustrates an inner CNN module 2900implemented with dimension reduction. Moreover, as shown in theseexamples, additional butterfly layers or filters are added in parallelto the regular convolution layers. In some embodiments, for example, 2×2and/or 4×4 butterfly operations can be added in parallel to the regularconvolution and pooling layers. For example, in some embodiments, thebutterfly operations could be implemented similar to the examplebutterfly operation illustrated in FIGS. 31A-B.

With respect to inner module 2800 of FIG. 28, for example, butterflylayers 2830 a,b are added in parallel to convolution layers 2810 a-c andpooling layer 2820, and the butterfly layers 2830 include verticalN-point butterfly operations 2830 a and horizontal N-point butterflyoperations 2830 b. For example, in some embodiments, the butterflyoperations may be performed on both vertical and horizontal dataelements within the visual data. Similarly, with respect to inner module2900 of FIG. 29, butterfly layers 2930 a,b are added in parallel toconvolution layers 2910 a-e and pooling layers 2920 a-b, and thebutterfly layers 2930 include vertical N-point butterfly operations 2930a and horizontal N-point butterfly operations 2930 b.

Note that this approach, however, does not require multiple butterflylayers to be stacked within a single inner module, as the CNN does nothave to perform a complete inverse DCT. For example, the goal ofmultiple convolution layers is to extract/transform the input data to afeature space where the fully connected layers can easily separatedifferent clusters. Accordingly, the butterfly layers do not have toperform a complete inverse DCT, and instead, they can simply be designedto aid in extracting and transforming the input data into the featurespace. In this manner, a complete or entire stack of organized butterflylayers does not need to be included in the CNN.

Moreover, the weights of each butterfly can be adjusted during thetraining phase, and thus the decision of whether to use the butterflylayers and/or how much to rely on them will be adjusted automatically.

FIG. 30 illustrates an alternative embodiment of a multi-domain CNN 3000with butterfly layers 3002 and normal layers 3004 arranged sequentiallyrather than in parallel.

FIGS. 31A-B illustrate an example of a one-dimensional (1D)N-pointbutterfly operation. In particular, the illustrated example is a 4-pointbutterfly operation, meaning the butterfly operation is performed over adistance of four data points 3110 a-d. In other embodiments, however,butterfly operations may be implemented over any number of data points.Moreover, in some embodiments, data points 3110 a-d may representcompressed pixel data, such as DCT coefficients.

In some embodiments, for example, butterfly operations may besuccessively performed on a collection of one-dimensional (1D) elementsfrom the visual data, such as horizontal or vertical data elementswithin the visual data. For example, each butterfly operation maygenerate two outputs or channels using separate addition and subtractionoperations (e.g., by computing the sum of two points over a largedistance and the difference of two points over a large distance). Forexample, the 1^(st) and 4^(th) points of the input may be added togetherto compute their sum (1^(st) point+4^(th) point), and also subtracted tocompute their difference (1^(st) point-4^(th) point). Additionalbutterfly operations may be successively performed over the input inthis manner using a rolling window. For example, in the next butterflyoperation, the sum and difference may be computed using the 2^(nd) and5^(th) points, and the process may repeat in this manner until allelements in the input have been processed.

In FIGS. 31A-B, for example, the addition and subtraction operations fora butterfly operation are shown. In particular, FIG. 31A illustrates theaddition operation, and FIG. 31B illustrates the subtraction operation.In FIG. 31A, for example, the 1^(st) point (3110 a) and the 4^(th) point(3110 d) are added together to compute a new point (3120 a) thatrepresents their sum. Similarly, in FIG. 31B, the 4^(th) point (3110 d)is subtracted from the 1^(st) point (3110 a) to compute a new point(3130 d) that represents their difference.

Accordingly, butterfly operations can be incorporated into a CNN in thismanner in order to enable processing of visual data in both the pixeldomain and compressed domain (e.g., DCT domain), thus eliminating therequirement of fully decompressing visual data before analyzing itscontents using a deep learning neural network. For example, rather thanexplicitly performing an inverse DCT transform to fully decompressvisual data before processing it using a CNN, the CNN can instead beimplemented using butterfly layers to inherently incorporatedecompression functionality into the CNN, thus enabling the CNN to beprovided with compressed data as input.

FIGS. 32 and 33 illustrate an example embodiment of a three-dimensional(3D) CNN 3200 that is capable of processing compressed visual data. Insome embodiments, for example, 3D CNN 3200 could be used in theimplementation of, or in conjunction with, the compression-based CNNembodiments described throughout this disclosure (e.g., the CNNs ofFIGS. 24 and 28-31).

Many visual analytics systems require visual data to be decompressedbefore any processing can be performed, such as processing by a deeplearning neural network. To illustrate, FIG. 34 illustrates an exampleof a pixel-domain CNN 3400, and FIG. 35 illustrates an example of anassociated pixel-domain visual analytics pipeline 3500. In theillustrated example, pixel-domain CNN 3400 performs object detection andclassification for visual analytics using data in the pixel or imagedomain (e.g., using decompressed visual data). For example, theconvolutional kernels in the early layers of the CNN implementtwo-dimensional (2D) convolutions on the image data, and multiple layersof convolutions, pooling, and rectified linear unit (ReLU) operationsare repeated in order to successively extract combinations of featuresfrom the earlier layers. Moreover, because CNN 3400 operates onpixel-domain data, compressed visual data must be fully decompressedbefore it can be processed by CNN 3400. For example, as shown by visualanalytics pipeline 3500 of FIG. 35, the original pixel domain data 3502is first compressed by a video encoder 3510 (e.g., prior to transmissionover a network), and the compressed data 3504 is subsequentlydecompressed by a video decoder 3520 before performing video analytics3540 (e.g., using a CNN).

In the illustrated embodiment of FIGS. 32 and 33, however, 3D CNN 3200processes compressed visual data directly using a 3D format designed toimprove processing efficiency. For example, the compressed image isalready transformed into the DCT domain, and thus the DCT transformcoefficients can be reshaped into a 3D format in order to separate theDCT transform coefficients into different channels. In this manner, thereshaped DCT transform data is arranged in a manner that provides bettercorrelation between the spatial and transform domain coefficients. Thereshaped DCT transform data can then be processed directly by a CNN(e.g., using 3D convolutions to perform feature extraction), whichultimately enables the CNN to be used faster. For example, byeliminating the decompression step required by existing approaches,processing efficiency is improved, particularly for computingenvironments that do not include built-in hardware video decompressionaccelerators.

In some embodiments, for example, 3D CNN 3200 may be designed to operatedirectly on compressed visual data (e.g., video frames) represented inthe DCT domain using a 3D matrix. For example, in some embodiments, theDCT block indices may be represented by the x and y dimensions of the 3Dmatrix, while the DCT transform magnitude vectors may be organized alongthe z dimension. In this manner, the convolutional kernels in the firstlayer of the new CNN architecture can be implemented using 3D filtersdesigned to better capture the spatial and frequency domain correlationsand features of the compressed data, thus improving the performance ofthe CNN operation in the DCT domain.

The majority of common video and image encoding schemes use discretecosine transforms (DCT) to convert spatial pixel intensities tofrequency domain representations. The illustrated embodiment is based onthe observation that once image data is split into 4×4 pixel blocks andpassed through a transform such as DCT, the transformed data hasdifferent correlation properties than the original data. For example,with respect to a DCT transform, the DC coefficients of adjacent blocksare often strongly correlated, while the corresponding higher frequencyAC coefficients of adjacent blocks may be similarly correlated.

Accordingly, FIG. 32 illustrates an approach for transforming a 2D imageinto a 3D matrix of DCT data, the latter of which is arranged in amanner that allows the DCT data to be processed more efficiently by aCNN. In the illustrated example, an input image of size N×N (referencenumeral 3210) is first broken up into 4×4 pixel blocks (examplereference numeral 3212), and each 4×4 pixel block is passed through aDCT transform. The resulting DCT transform domain data (referencenumeral 3220) is then stored in a 3D matrix, where the x and ydimensions correspond to the spatial block indices and the z dimensioncontains vectors of DCT coefficients (reference numeral 3222), whichinclude 16 coefficients per vector. Accordingly, the resulting transformdomain data (reference label 3220) has dimensions of size K×K×16, whereK=N/4. In other embodiments, the size of DCT may vary, e.g., 8×8, 16×16.Further, in some embodiments, an integer transform or otherspatial-domain to frequency-domain transform (e.g., DWT) may be usedinstead of DCT.

Next, as shown in FIG. 33, the transform domain data represented usingthe 3D matrix (reference label 3220) is input into the CNN (referencelabel 3200), which includes a first layer of 3D convolutional kernelsthat use 3D filters. This layer extracts both spatially correlatedfeatures in the x-y plane along with any specific signatures in thefrequency axis (z dimension), which can be used as input to succeedinglayers.

The illustrated embodiment provides numerous advantages, including theability to directly process compressed visual data in an efficientmanner, thus eliminating the need to decompress the data beforeanalyzing its contents (e.g., using a deep learning neural network). Inthis manner, the overall computational complexity of visual analyticscan be reduced. Moreover, because compressed or DCT domain data isquantized and thus represented using a more compact form than theoriginal visual data (e.g., video frame), the overall CNN complexity maybe further reduced compared to a conventional pixel-domain CNN. Forexample, with respect to visual data (e.g., images or video) compressedin certain compression formats such as JPEG or M-JPEG, the DCTcoefficients are quantized, and typically the highest frequencycomponents may be zeroed out by the quantization. Thus, the total volumeof non-zero data processed by the CNN is reduced compared to theoriginal image data. Accordingly, based on the data volume reduction ofthe compressed data (e.g., due to DCT coefficient quantization), the CNNcomplexity may be further reduced, and the training speed of convergencemay improve.

FIG. 90 illustrates a flowchart 9000 for an example embodiment of amulti-domain convolutional neural network (CNN). In various embodiments,for example, flowchart 9000 may be implemented using the visualcomputing architecture and functionality described throughout thisdisclosure.

A typical CNN is designed to operate on uncompressed or raw visual data,thus requiring the visual data to be fully decompressed before anyprocessing can be performed. For example, the CNN may have multiplelayers, and each layer may have one or more filters that are typicallydesigned to process uncompressed or “pixel-domain” visual data (e.g.,convolution and pooling filters). In the illustrated example, however,the multi-domain CNN is capable of processing both uncompressed andcompressed visual data. For example, the multi-domain CNN includesadditional filters designed to process compressed visual data, which maybe added in parallel to the existing pixel-domain filters of certainlayers. In some embodiments, for example, the additional“compressed-domain” filters may be implemented using butterfly filtersor 3D convolution filters (e.g., as described above in connection withFIGS. 25-35). Further, during training, the CNN can be trained to relyon the respective pixel-domain filters or compressed-domain filters, asappropriate, depending on whether the input is uncompressed orcompressed. For example, as with typical CNNs, the weights of eachcompressed-domain filter can be adjusted during the training phase, andthe decision of whether to use these compressed-domain filters and/orhow much to rely on them will be adjusted automatically. In this manner,the CNN is capable of processing visual data in either the pixel domainor the compressed domain.

In some embodiments, for example, the compressed-domain filters may beimplemented using butterfly filters (e.g., as described in connectionwith FIGS. 25-31). These butterfly filters may be added in parallel tothe existing pixel-domain CNN filters (e.g., convolution and poolingfilters) or sequentially (e.g., using one or more butterfly layers thatprecede the typical CNN layers). In this manner, the butterfly filterswill perform partial inverse transforms on the visual data, thus helpingto transform the visual data (when compressed) into a feature space thatcan be processed by the CNN.

Alternatively, or additionally, the compressed-domain filters may beimplemented using 3D convolution filters designed to operate oncompressed data (e.g., as described in connection with FIGS. 32-35). Forexample, two-dimensional (2D) compressed visual data may be transformedinto a three-dimensional (3D) representation in order to group relatedtransform coefficients into the same channel. In this manner, a 3Dconvolution can then be performed on the transformed 3D compressed data,thus enabling the related transform coefficients to be processedtogether.

In the example illustrated by FIG. 90, flowchart 9000 implements anexample embodiment of the described multi-domain CNN. The flowchartbegins at block 9002, where a visual representation is captured usingone or more sensors, such as cameras and/or other types of visionsensors. The flowchart then proceeds to block 9004, where visual datacorresponding to the visual representation is obtained. In someembodiments, for example, the visual data may be obtained by or from adevice near the sensors and/or over a network. Moreover, the visual datamay be either uncompressed or compressed.

The flowchart then proceeds to block 9006, where the visual data isprovided as input to a multi-domain CNN, and then to block 9008, wherethe input is provided to a first layer of the CNN.

The flowchart then proceeds to block 9010, where the input is processedusing pixel-domain and/or compressed-domain filter(s) of the current CNNlayer. The pixel-domain filters, for example, may be typical CNNfilters, such as convolution and pooling filters. The compressed-domainfilters, however, may be filters designed to process compressed visualdata, such as butterfly filters, 3D convolution filters, or a mixture ofbutterfly filters, 3D convolution filters, and regular 2D convolutionfilters. For example, the compressed-domain filters may be used toprocess noncontiguous elements of the visual data that are typicallycorrelated when the visual data is compressed. Moreover, the CNN can betrained to rely on processing associated with the pixel-domain filterswhen the visual data is uncompressed, and further trained to rely onprocessing associated with the compressed-domain filters when the visualdata is compressed.

In some embodiments, for example, the compressed-domain filters may bebutterfly filters, which may each be used to perform a partial inversetransform associated with the visual data. For example, a butterflyfilter may compute a sum and a difference for a plurality of pairs ofelements within the visual data. Each pair of elements, for example, maybe positioned at locations within the visual data that are a particulardistance apart (e.g., horizontally or vertically).

Alternatively, or additionally, the compressed-domain filters may be 3Dconvolution filters. A 3D convolution filter, for example, may be usedto perform processing associated with three-dimensional (3D) visual datathat is generated based on a three-dimensional (3D) transformation ofthe visual data. For example, the 3D visual data may be generated byperforming a 3D transformation on the visual data, and the resulting 3Dvisual data may then be provided as input to the 3D convolution filter.

In some embodiments, for example, the 3D transformation rearranges thevisual data into three dimensions such that there is a correlation amongone or more adjacent elements within a particular dimension when thevisual data used for the 3D transformation is compressed. For example,when the visual data is compressed, the 3D transformation may grouprelated or correlated transform coefficients (e.g., DCT coefficients)into the same channel, thus allowing those coefficients to be processedtogether.

In some embodiments, for example, the 3D visual data may be generated byfirst partitioning the visual data into multiple blocks, where eachblock includes a plurality of elements of the visual data. For example,when the visual data is compressed, the elements may correspond totransform coefficients (e.g., DCT coefficients). The blocks may then bearranged along a first dimension and a second dimension within the 3Dvisual data, while the elements associated with each block may bearranged along a third dimension of the 3D visual data. In this manner,when the visual data used for the transformation is compressed, theresulting 3D visual data contains related or correlated transformcoefficients (e.g., DCT coefficients) in the same channel, thus allowingthose coefficients to be processed together.

The flowchart then proceeds to block 9012 to determine whether there isa subsequent layer in the CNN. If the answer at block 9012 is YES, theflowchart proceeds to block 9014 to provide input to the next layer ofthe CNN. In some embodiments, for example, the output of the currentlayer of the CNN may be provided as input to the next layer of the CNN.If the answer at block 9012 is NO, the CNN processing is complete, andthe flowchart then proceeds to block 9016 to classify the visual databased on the output of the CNN.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 9002 to continue capturing and processing visual data.

FIGS. 36 and 37 illustrate example embodiments of visual analyticspipelines 3600 and 3700 that perform visual analytics on compressedvisual data (e.g., using the compression-based CNN embodiments describedthroughout this disclosure). As shown by these FIGURES, the decoding ordecompression step in the visual analytics pipeline is optional and/ormay be omitted entirely. For example, as shown by visual analyticspipeline 3600 of FIG. 36, the original pixel domain data 3602 is firstcompressed by a video encoder 3610 (e.g., prior to transmission over anetwork), and the compressed data 3604 may optionally be partiallydecompressed by a video decoder 3620 before performing visual analytics3630 on the fully or partially compressed data 3606. Similarly, as shownby visual analytics pipeline 3700 of FIG. 37, the original pixel domaindata 3702 is first compressed by a video encoder 3710 (e.g., prior totransmission over a network), and visual analytics (e.g., imageclassification) 3720 is then directly performed on the compressed data3704.

FIG. 38 illustrates a performance graph 3800 showing the precision of aCNN trained using compressed visual data (e.g., 4×4 transform DCTinputs), such as the compression-based CNNs described throughout thisdisclosure.

FIG. 39 illustrates a flowchart 3900 for an example embodiment ofcontext-aware image compression. In some embodiments, flowchart 3900 maybe implemented using the embodiments and functionality describedthroughout this disclosure.

Today, many people rely on the cloud for storing or backing up theirphotos. Typically, photos are stored as individually compressed files orunits. In the current computing era, however, that approach is ofteninefficient. For example, people increasingly use their mobile devicesto take photos, and each new generation of mobile devices are updatedwith cameras that support more and more megapixels, which results inlarger volumes of photos that require more storage space. Moreover,people often capture multiple photos of the same object or scene duringa single occasion, which often results in a close temporal correlationamong those photos, along with substantial redundancy. Accordingly, dueto the redundancy across similar photos, individually compressing andstoring each photo can be an inefficient approach. For example,traditionally, each photo is compressed and saved independently using aparticular image compression format, such as JPEG. By compressing eachphoto individually, however, current approaches fail to leverage theinter-picture correlations between groups of similar photos, and thusmore storage space is required to store the photos. For example, twophotos that are nearly identical would still require double the storageof a single photo.

Accordingly, in the illustrated embodiment, groups of similar or relatedphotos are compressed and stored more efficiently. For example, contextinformation associated with photos is extracted and used to identifysimilar or related photos, and similar photos are then compressedjointly as a group. The contextual information, for example, could beused to identify a group of pictures from a single user that were takenvery close in time and/or at the same location. As another example, thecontextual information could be used to identify a group of picturestaken by different users but at the same location. Accordingly, theidentified group of similar photos may be compressed using video codingin order to leverage the inter-photo correlations and ultimatelycompress the photos more efficiently. In this manner, compressingrelated or correlated images using video compression rather thanstandard image compression can significantly reduce the storage spacerequired for the photos (e.g., 2-5 times less storage space in somecases). Accordingly, this approach can be used to save or reduce storagein the cloud.

The flowchart may begin at block 3902 by first obtaining a new photo. Insome cases, for example, the new photo could be captured by the cameraof a mobile device. In other cases, however, any type of device orcamera may be used to capture the photo.

The flowchart may then proceed to block 3904 to collect contextinformation associated with the new photo. For example, when a photo isnewly captured (e.g., by a mobile device), corresponding contextinformation associated with the photo is collected, such as a timestamp,GPS coordinates, device orientation and motion states, and so forth.

The flowchart may then proceed to block 3906 to determine if a matchingmaster photo can be identified for the new photo. In some embodiments,for example, the context information of the new photo is compared to thecontext information of other previously captured master photos todetermine whether the new photo is closely correlated to any of theexisting master photos. For example, if the photo is taken in the samelocation, within a certain amount of time, and with little phonemovement compared to a master photo, it is likely that the new photo ishighly correlated with the master photo. Further, in some embodiments,image processing techniques (e.g., feature extraction/matching) can thenbe applied to confirm the photo correlation. In some embodiments, forexample, a scale-invariant feature transform (SIFT) may be used todetermine whether a pair of photos are sufficiently correlated ormatching (e.g., by detecting, extracting, and/or comparing imagefeatures). Further, in some embodiments, image data itself may betreated as context information that can be used to identify similar orcorrelated photos, such as image pixels, image structures, extractedimage features, and so forth.

If a matching master photo is identified at block 3906, the flowchartmay then proceed to block 3908 to encode the new photo with the matchingmaster photo. In some embodiments, for example, a video codec (e.g.,H.264) may be used to compress the new photo as an inter-frameassociated with the master photo. For example, video codecs typicallyprovide inter-frame encoding, which effectively utilizes the temporalcorrelation between similar images to improve the coding efficiency.

In some embodiments, a master photo may include any photo that iscompressed without reference to other parent or related images, while aslave photo may include any photo that is compressed with reference to amaster or parent image (e.g., using inter-frame mode of a video codec).Accordingly, a slave photo must efficiently record or correlate relevantinformation of its master photo, so that when the slave photo needs tobe decoded for display of the entire image, the associated master photocan be quickly identified.

If a matching master photo is NOT identified at block 3906, theflowchart may then proceed to block 3910 to encode the new photo byitself. For example, when the new photo does not match any of theexisting master photos, the new photo is encoded without referencing anyother photos, and the flowchart may then proceed to block 3912 todesignate the new photo as a master photo, allowing it to potentially becompressed with other subsequently captured photos.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 3902 to continue obtaining and compressing newly captured photos.

FIG. 64 illustrates an example embodiment of an image storage system6400 that leverages context-aware image compression. In someembodiments, for example, image storage system 6400 may be used toimplement the context-aware image compression functionality fromflowchart 3900 of FIG. 39.

In the illustrated embodiment, image storage system 6400 includes animage storage device 6410 and a plurality of mobile devices 6420 a-c, asdescribed further below.

Image storage device 6410 includes at least one processor 6411, memoryelement 6412, communication interface 6413, and data storage 6414. Datastorage 6414 contains a context-aware image compression engine 6415 anda plurality of compressed images 6416. Context-aware image compressionengine 6415 includes logic and/or instructions that can be executed byprocessor 6411 in order to perform context-aware image compression,which enables compressed images 6416 to be compressed and stored moreefficiently.

Mobile devices 6420 a-c each include at least one processor 6421, memoryelement 6422, communication interface 6423, data storage 6424, camera6425, and sensor(s) 6426. For simplicity, the underlying components ofmobile devices 6420 a-c are only illustrated for mobile device 6420 a.

The respective components of image storage system 6400 may be used toimplement context-aware image compression functionality (e.g., asdescribed further in connection with FIGS. 39 and/or 56). In particular,image storage system 6400 provides efficient storage of images bycompressing groups of similar or related images together based oncontext information associated with the images.

In some embodiments, for example, image storage system 6400 may includea data storage 6414 containing a plurality of compressed images 6416captured by a mobile device 6420 associated with a particular user. Thecompressed images 6416 may include both master and slave images. In someembodiments, for example, a master image may be an image compressedwithout reference to any other images (e.g., compressed by itself and/orin isolation), while a slave image may be an image compressed withreference to at least one master image. The compressed images 6416 mayalso include associated context information. In general, contextinformation associated with a particular image can include any type ofinformation associated with the context in which the image was captured,such as time, location, device identity, device orientation ordirection, device movement, and so forth. In some embodiments, forexample, certain context information may be collected by one or moresensors 6426 of a mobile device 6420, such as a GPS receiver, gyroscope,accelerometer, compass, and so forth.

Accordingly, when a mobile device 6420 captures a new image using itsassociated camera 6425, the mobile device 6420 may provide theuncompressed image and its associated context information to imagestorage device 6410 (e.g., via communication interface 6423). In thismanner, the context information can be leveraged to identify anypreviously captured images 6416 that may be similar to the newlycaptured image. In particular, by identifying correlations based on thecontext information, it can be determined whether the newly captureduncompressed image is associated with a corresponding compressed masterimage 6416 stored on image storage device 6410. For example, the newlycaptured image may be determined to be associated with a compressedmaster image 6416 if it was captured within a certain amount of time, atthe same or similar location, by the same mobile device, at a similardevice orientation or direction, and/or with little or no devicemovement.

Further, in some embodiments, image feature matching techniques (e.g., aSIFT algorithm) can then be applied to confirm the image correlation.For example, image feature matching can be used to identify acorrelation between features of the newly captured image and thecontextually-similar master image 6416.

If it is determined that the newly captured uncompressed image isassociated with a corresponding compressed master image 6416, then theuncompressed image may be compressed with reference to the correspondingmaster image. In some embodiments, for example, the uncompressed imagemay be compressed with reference to the corresponding master image usinginter-frame encoding. Inter-frame encoding effectively leverages theredundancy between similar images to improve the coding efficiency(e.g., as described further below in connection with FIG. 65). In someembodiments, for example, a video codec that uses inter-frame encoding(e.g., H.264) may be used to perform the compression. The resultingcompressed image may then be designated as a slave image since it wascompressed with reference to a master image.

If it is determined that the newly captured uncompressed image is notassociated with any compressed master images 6416, then the uncompressedimage may be compressed without reference to any other images. In someembodiments, for example, the uncompressed image may be compressed usingintra-frame encoding. Intra-frame coding leverages spatial redundancy(e.g., correlations among pixels within a single frame or image) toimprove the coding efficiency. The resulting compressed image may thenbe designated as a master image since it was compressed withoutreference to any other images. In this manner, the resulting compressedimage may subsequently be used as a master image to compresssubsequently captured images that are determined to be similar.

Accordingly, after compressing the newly captured image (e.g., eitherwith or without reference to a corresponding master image), theresulting compressed image may then be stored on image storage device6410.

The example embodiment of context-aware image compression illustratedand described in connection with FIG. 64 is merely illustrative of manypossible embodiments. In various embodiments, for example, thecompression approach described above may be performed periodically tocompress batches of recently captured images together rather thancompressing each image sequentially as it is captured. In addition, insome embodiments, certain images may be compressed with reference tomultiple master images, and/or certain images may serve as both masterand slave images (e.g., an image that is compressed with reference to amaster image but is also used to compress another slave image).Moreover, in various embodiments, the underlying components andfunctionality of image storage system 6400, image storage device 6410,and/or mobile devices 6420 may be combined, separated, and/ordistributed across any number of devices or components. In variousembodiments, for example, image storage device 6410 may either beimplemented in the cloud (e.g., as a cloud-based data storage server),implemented in the network edge (e.g., within each mobile device 6420and/or as a standalone edge storage device), and/or distributed acrossboth the cloud and the network edge. For example, in some embodiments,the compression and/or storage functionality of image storage device6410 may be implemented by and/or integrated within each mobile device6420.

FIG. 65 illustrates an example 6500 of inter-frame encoding forcontext-aware image compression. In the illustrated example, a slaveimage 6510 is compressed as an inter-frame with reference to a masterimage 6520 in order to produce a compressed slave image 6530.

In the illustrated example, the slave image 6510 is first divided intomultiple blocks, which may be referred to as macroblocks, and eachmacroblock is then compressed using inter-frame encoding. Forsimplicity, the illustrated example only depicts the inter-frameencoding process for a single macroblock 6512 of slave image 6510, butthe remaining macroblocks of slave image 6510 may be encoded in asimilar manner.

Rather than encoding the raw pixel values of slave macroblock 6512, theinter-frame encoding process for slave macroblock 6512 begins byidentifying a master image 6520 that contains a similar matchingmacroblock 6522. In some embodiments, for example, a matching mastermacroblock 6522 in a corresponding master image 6520 may be identifiedusing context information and/or feature matching algorithms, asdescribed further throughout this disclosure.

The slave macroblock 6512 and corresponding matching master macroblock6522, however, may be in different positions within their respectiveimage frames 6510, 6520. Accordingly, motion estimation may be performedto identify the relative movement and/or positions of the slavemacroblock 6512 and the corresponding matching master macroblock 6522.In some embodiments, for example, a motion vector 6531 may be generatedthat points to the position of matching master macroblock 6522 in themaster image 6520. For example, the motion vector 6531 may start at theposition of the slave macroblock 6512 and may end at the correspondingposition of the master macroblock 6522.

Further, while the slave macroblock 6512 and the matching mastermacroblock 6522 may be similar, it is unlikely that they are an exactmatch. Accordingly, the differences between the slave macroblock 6512and the matching master macroblock 6522 are computed in order to producea prediction error 6532.

The slave macroblock 6512 can then be encoded into a compressed format,which may include a reference to the corresponding master image 6520,the motion vector 6531, and the prediction error 6532. The remainingmacroblocks of the slave image 6510 may be encoded in a similar mannerto produce a compressed slave image 6530.

In this manner, the compressed slave image 6530 can be subsequentlydecoded to re-produce the original slave image 6510. For example, foreach encoded macroblock in the compressed slave image 6530, a masterimage 6520 can be identified based on the associated master imagereference, a corresponding macroblock 6522 in the master image 6520 canbe identified based on the associated motion vector 6531, and the rawpixels of the slave macroblock 6512 can then be recovered from themaster macroblock 6522 based on the associated prediction error 6532.

The illustrated example of FIG. 65 is merely illustrative of a varietyof possible implementations of inter-frame encoding for context-awareimage compression. In various embodiments, for example, inter-frameencoding may be performed by dividing a slave image into any number ofunderlying macroblocks, or alternatively, inter-frame encoding may beperformed on a slave image as a whole, among other possible variations.

Privacy/Security

In distributed visual processing systems, it is important to implementeffective privacy and security policies to protect sensitive visual dataof underlying users or subjects (e.g., images or video with people'sfaces). Accordingly, in some embodiments, the visual fog architecturedescribed throughout this disclosure may be implemented using a varietyof privacy and security safeguards.

In some embodiments, for example, privacy-preserving distributed visualprocessing may be used in order to schedule or distribute visionworkloads across available fog nodes in an efficient manner, while alsoadhering to any applicable privacy and/or security constraints.

Similarly, a multi-tiered storage approach may be used to store visualdata in different locations and/or for different durations of time,depending on the particular level of sensitivity of the data. Forexample, the cloud may be used for long term storage of less sensitiveor high-level visual data or metadata, while edge devices (e.g., onpremise gateways) may be used for storage of highly sensitive visualdata.

Moreover, certain vision operations may be implemented usingprivacy-preserving approaches. For example, for some vision applications(e.g., automated demographics identification), feature extraction andrecognition may be implemented using cameras and sensors that capturetop-down views rather than intrusive frontal views.

As another example, gateway cloud authentication may be used to securelyauthenticate gateways and/or other fog devices to the cloud using JSONweb tokens.

As another example, wallets or distributed keys, along with MESH orGOSSIP based communication protocol, can be used to provide improved andmore secure key management solutions.

Stream multiplexing may be used in application layer routing forstreaming media, for example, by multiplexing visual sensors overmultiple channels and introducing entropy to make channel predictionmore difficult. For example, additional security can be provided byintroducing entropy and other noise (e.g., chaff signals) designed tocomplicate channel prediction, thus thwarting efforts of maliciousactors to pick up on video feeds.

As another example, a self-sovereign blockchain can be used to providemulti-tenant device identification. For example, the blockchain can beused to handle the orchestration and acceptance of device identitiesacross multiple visual fog networks (e.g., even for legacy systems),thus allowing devices to assert their identity without relying on thirdparty or centralized services. A self-sovereign blockchain can similarlybe used for other purposes, such as managing a collection of distributedcomputing algorithms.

As another example, blockchain lifecycle management (e.g., managing theinstantiation and lifecycle of blockchains) can be used to provide anadditional level of security on blockchains used in a visual fogarchitecture. For example, blockchain lifecycle management can be usedto ensure that a particular blockchain is implemented correctly andbehaves as expected.

As another example, stakeholder management can be used to provide a setof protocols and frameworks to allow self-interests to be asserted,while arbitrating against conflicts in an equitable way.

FIGS. 40A-C illustrate an example embodiment of a privacy-preservingdemographic identification system 4000. Identifying human demographicattributes (e.g., age, gender, race, and so forth) can be leveraged fora variety of use cases and applications. Example use cases includehuman-computer interaction, surveillance, business and consumeranalytics, and so forth. In retail and healthcare segments, for example,defining a target audience and developing customer profiles has become acritical factor for successful brand strategy development.

In some embodiments, for example, computer vision and/or facialrecognition technology may be used to identify human demographics. Forexample, demographics could be identified based on frontal and/or sidefacial features extracted using computer vision facial recognitiontechnology. The use of frontal facial recognition technology in public,however, may implicate potential privacy concerns. Moreover, demographicidentification is crucial across different domains and should not belimited to only frontal-based sensors and recognition techniques,particularly in the Internet-of-Things (IoT) era, which is projected tohave over 20 billion connected devices by year 2020. Further, whenlimited to frontal-based vision sensors, it may be challenging todevelop a demographics identification system that overcomes the personocclusion problem, while also providing wide processing viewing angles.

Accordingly, in the illustrated embodiment of FIGS. 40A-C,privacy-preserving demographic identification system 4000 uses one ormore top-view sensors 4015 to identify human demographics. In someembodiments, for example, either a single sensor 4015 or multiplesensors 4015 may be used to capture top-down views of humans, ratherthan conventional frontal views. Moreover, human demographics may thenbe identified based on features extracted from the top-down viewscaptured by the sensors 4015. In this manner, the use of top-viewsensors 4015 enables human demographics to be automatically identifiedwhile preserving privacy, providing wider sensor viewing angles, andreducing susceptibility to occlusion.

FIG. 40A illustrates a high-level implementation of demographicidentification system 4000. In the illustrated embodiment, edge devices4010 include multiple sets of top-view sensors 4015 a-c that are usedfor sensing humans. For example, each set of top-view sensors 4015 a-cmay include one or more sensors that are capable of capturinginformation about their surrounding environment. The informationcaptured by top-view sensors 4015 a-c is then processed in the fog 4020to detect humans and identify their demographics. The contextualinformation extracted by the fog 4020 (e.g., human demographics) maythen be transmitted to the cloud 4030 for further analytics, such aspeople profiling or generating heat maps. Alternatively, oradditionally, certain contextual information may be withheld orobfuscated due to users' privacy policies, or if contributed, it may beencrypted to prevent unauthorized disclosures. Function currying mayalso be used, where the analytics algorithm is distributed and appliedat the edge or endpoint and where an analytics result (that aggregatesmultiple results) is output by the curry function.

FIG. 40B illustrates an example of a set of top-view sensor(s) 4015associated with demographic identification system 4000 of FIG. 40A. Asshown in the illustrated example, top-view sensors 4015 include acollection of one or more sensors positioned above an area that isaccessible to humans 4002. In some embodiments, for example, top-viewsensors 4015 could be mounted to the ceiling of a retail store near theentrance. Moreover, top-view sensors 4015 can include any type and/orcombination of sensor(s), such as a vision camera, infrared camera,light detection and ranging (LiDAR) sensor, and so forth. In thismanner, top-view sensors 4015 can be used to capture top-viewrepresentations of humans 4002 that pass below the sensors. Moreover, asdescribed further with respect to FIG. 40C, the top-view representationscaptured by top-view sensors 4015 can then be processed further toidentify the demographics of humans 4002 captured by the sensors.

FIG. 40C illustrates an example of the demographics identificationprocess performed by the fog 4020 in demographic identification system4000 of FIG. 40A. In the illustrated example, the demographicsidentification process involves (i) training a demographicsclassification model, and (ii) identifying demographic information usingthe trained demographics classification model with top-view sensor dataas input.

The process of training the demographics classification model isillustrated by blocks 4021-4024. At block 4021, a training database oftop-view human data must first be obtained or generated. In someembodiments, for example, the training database may include datacaptured by top-view sensors 4015, such as camera images, infraredimages, point clouds, and so forth. At block 4022, features that aretypically representative of human demographics are then selected/trainedfrom the database using feature extraction methodologies, such asprincipal component analysis (PCA), discrete cosine transforms (DCT),machine learning (e.g., deep learning using a neural network), and soforth. At block 4023, the selected/trained features are then provided asinput to a process used to train a demographics classification model. Atblock 4024, the trained demographics model is then saved in the fog 4020for subsequent use during the demographics identification process, asdescribed further below.

The process of identifying human demographics is illustrated by blocks4025-4029. At block 4025, sensor data is captured by edge devices 4010using one or more top-view sensor(s) 4015, such as a vision camera,infrared camera, LiDAR sensor, and so forth. The raw sensor data (e.g.,RGB images, thermal images, point clouds) is then transmitted from theedge 4010 to the fog 4020 in order to perform data pre-processing in thefog 4020 (e.g., on-premises), such as data transformations, de-noising,and so forth. At block 4026, person detection is then performed on thepre-processed input stream. In some embodiments, for example, thepre-processed input stream is analyzed to determine if a person iscaptured in the underlying visual data. As an example, pre-processedimage data from a top-view camera may be analyzed to determine if theimage contains a person, and if so, the portion of the image thatcontains the person may be extracted. At block 4027, features that aretypically representative of human demographics are then selected orextracted from the detected person using feature extraction/machinelearning techniques. At block 4028, the extracted features from block4027 and the pre-trained demographics model from block 4024 are thenused by a demographics classifier to classify the demographic attributesof the detected person. At block 4029, demographic informationassociated with the detected person is then identified based on theoutput of the demographics classifier. Privacy requirements may cause4029 demographics information to be separated from 4021 data thatassociates person data with demographics data. A user-controlled privacymechanism may authorize the association or linking of person data withdemographic data. The original image used to derive person data anddemographic data may be hidden from further access so as to preventsubsequent re-derivation of privacy sensitive content/context.

The described embodiments of top-view demographics identificationprovide numerous advantages. As an example, the described embodimentsenable demographic information to be accurately identified based ontop-down views of humans captured using a single- or multi-sensorapproach. Compared to a frontal view approach, for example, a top-downor aerial perspective provides a wider angle of view for processing,reduces the problem of blocking or occlusion of people captured by thesensors, and preserves depth information associated with people andfeatures captured and processed by the system. In addition, thedescribed embodiments are less privacy-intrusive, as they only capturetop views of people rather than other more intrusive views, such asfrontal views. The described embodiments also identify demographicinformation based on permanent or lasting anthropometry features ratherthan features that may change or vary. Moreover, unlike motion-baseddetection approaches, the described embodiments are operable using onlystatic views or images and do not require continuous image sequences orvideos. Further, the described embodiments can be leveraged for avariety of use cases and applications, including retail, digitalsurveillance, smart buildings, and/or other any other applicationsinvolving human sensing, person identification, person re-identification(e.g., detecting/tracking/re-identifying people across multiplemonitored areas), and so forth.

FIG. 53 illustrates a flowchart 5300 for an example embodiment ofprivacy-preserving demographics identification. In some embodiments, forexample, flowchart 5300 may be implemented by demographicsidentification system 4000 of FIGS. 40A-C.

The flowchart may begin at block 5302 by obtaining sensor data from atop-view sensing device. A top-view sensing device, for example, may beused to capture sensor data associated with the environment below thetop-view sensing device (e.g., from a top-down perspective). In someembodiments, the top-view sensing device may include a plurality ofsensors, including a camera, infrared sensor, heat sensor, laser-basedsensor (e.g., LiDAR), and so forth.

The flowchart may then proceed to block 5304 to perform preprocessing onthe sensor data, such as data transformations, filtering, noisereduction, and so forth. In some embodiments, for example, the rawsensor data may be transmitted to and/or obtained by a processor that isused to perform the preprocessing. For example, the preprocessing may beperformed by an edge processing device at or near the network edge(e.g., near the top-view sensing device), such as an on-premise edgegateway.

The flowchart may then proceed to block 5306 to generate a visualrepresentation of the environment below the top-view sensing device. Thevisual representation, for example, may be generated using the sensordata captured by the top-view sensing device (e.g., camera images,infrared images, point clouds, and so forth). In some embodiments, forexample, the visual representation may be a three-dimensional (3D)representation or mapping of the environment from a top-downperspective. Moreover, in some embodiments, the visual representationmay be generated at or near the network edge (e.g., near the top-viewsensing device). For example, in some embodiments, an edge processingdevice (e.g., an on-premise edge gateway) may be used to generate thevisual representation.

The flowchart may then proceed to block 5308 to determine whether aperson is detected in visual representation. For example, if a personwas located under the top-view sensing device when the sensor data wascaptured, then the visual representation generated using the sensor datamay include a representation of the person from a top-view perspective.Accordingly, the visual representation may be analyzed (e.g., usingimage processing techniques) to determine whether it contains a person.In some embodiments, for example, the person detection may be performedat or near the network edge (e.g., near the top-view sensing device) byan edge processing device (e.g., an on-premise edge gateway).

If it is determined at block 5308 that a person is NOT detected in thevisual representation, the flowchart may proceed back to block 5302 tocontinue obtaining and processing sensor data until a person isdetected.

If it is determined at block 5308 that a person is detected in thevisual representation, however, the top-view representation of theperson may be extracted from the visual representation, and theflowchart may then proceed to block 5310 to identify one or morefeatures associated with the person. In some embodiments, for example,the top-view representation of the person may be analyzed to identify orextract anthropometric features associated with the person (e.g.,features or measurements associated with the size and proportions of theperson). For example, in some embodiments, the anthropometric featuresmay be identified by performing feature extraction using an imageprocessing technique, such as a discrete cosine transform (DCT),principal component analysis (PCA), machine learning technique, and soforth. Moreover, in some embodiments, the feature identification orextraction may be performed at or near the network edge (e.g., near thetop-view sensing device) by an edge processing device (e.g., anon-premise edge gateway).

The flowchart may then proceed to block 5312 to identify demographicinformation associated with the person (e.g., age, gender, race) basedon the identified features. In some embodiments, for example, a machinelearning model may be trained to recognize demographic information basedon human anthropometric features. In this manner, the machine learningmodel can be used to classify the identified features of the person torecognize the associated demographic information.

In some embodiments, the demographics identification may be performed ator near the network edge (e.g., near the top-view sensing device) by anedge processing device (e.g., an on-premise edge gateway). Moreover, insome embodiments, the edge processing device may transmit thedemographics information (e.g., using a communication interface) to acloud processing device to perform further analytics, such as generatinga heat map or a people profile.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 5302 to continue obtaining and processing sensor data from atop-view sensing device.

FIGS. 41-43 illustrate an example embodiment of privacy-preservingdistributed visual data processing.

In visual computing, multi-target multi-camera tracking (MTMCT) andtarget re-identification (ReID) are some of the most common workloadsacross different use cases. MTMCT involves tracking multiple objectsacross multiple views or cameras, while ReID involves re-identifying anobject (e.g., by extracting robust features) even after the objectundergoes significant changes in appearance. For example, in retail,MTMCT is often used to track shoppers within a store, while ReID may beused to extract and summarize robust features of shoppers so they canlater be re-identified (e.g., using MTMCT) in different circumstances,such as when a shopper has a significant change in appearance or visitsa different store.

Currently, there are no coherent end-to-end (E2E) solutions forperforming MTMCT and ReID that are scalable to large-scale visualcomputing systems (e.g., with tens of thousands of camera streams ormore). In particular, bandwidth limitations render it challenging todeploy such a system in a conventional cloud computing paradigm wherecameras send continuous video streams to the cloud for processing. Forexample, due to the large volume of video data generated by suchsystems, it is not feasible to funnel all of that data to the cloud forprocessing. On the other hand, it is unlikely that edge devices near thesource of the video data are capable of processing a complete visualprocessing workload in real time.

Moreover, privacy is also a challenge in scaling out such a system, assending visual data to the cloud for processing may implicate privacyconcerns. For example, in order to preserve customer privacy, manyretailers will not allow any video or images to be transmitted out oftheir stores, or they may surrender original images of customers andretain only uncorrelated demographics or person data. In some cases,customer consent may be required before a store is authorized to linkspecific customer data with its associated demographics.

Accordingly, FIGS. 41-43 illustrate an embodiment that solves theproblem of scaling out visual computing systems with MTMCT and ReIDcapabilities in a privacy-preserving manner. The illustrated embodimentpresents an edge-to-edge (E2E) architecture for performing MTMCT andReID across edge devices, gateways, and the cloud. The architecture isscalable and privacy-preserving, and can be easily generalized to manyvertical applications or use cases, such as shopper insights in retail,people searching in digital security and surveillance, player trackingand replays in sports, and so forth.

In some embodiments, for example, vision workloads may be scheduled andexecuted across visual fog nodes based on specified privacy constraints.As an example, privacy constraints for an MTMCT and/or ReID workload mayrequire tasks that output pictures with faces to remain on-premises(e.g., neither the tasks nor their output are assigned or transmittedbeyond the premise or to the cloud), be anonymized (e.g., face-blurred),and/or be deployed only on devices with enhanced link security.

In some embodiments, for example, rather than funneling every bit ofvisual data to the cloud for processing, intelligent decisions can bemade regarding how visual data and workloads are processed anddistributed across a visual computing system. Based on the privacyrequirements of a particular visual application, for example, a privacyboundary can be defined within the end-to-end paradigm of a visualcomputing system in order to achieve performance efficiency while alsopreserving privacy.

In some embodiments, for example, job partitioning can be used topartition a visual analytics workload into a directed acrylic graph(DAG) with vertices that represent primitive visual operations and edgesthat represent their dependencies. In this manner, the graph can be usedto represent the various tasks and associated dependencies for aparticular workload. Moreover, a privacy policy can be definedseparately for each dependency. Similarly, a device connectivity graphcan be used to represent the various devices and their connectivity inthe edge-to-cloud paradigm, and a privacy level agreement (PLA) can beestablished for each edge of connectivity in the graph. In this manner,the edge-to-cloud architecture can be implemented to include a coherentmanagement interface that performs end-to-end workload distributionwithout compromising privacy. For example, using the job partitioningapproach described above, workload distribution effectively becomes amapping problem of assigning the tasks of a workload onto devices in theedge-to-cloud paradigm. In some embodiments, for example, a globalscheduler can be used to determine an optimal mapping between tasks anddevices in order to maximize performance while preserving privacyconstraints.

In some cases, a PLA may be similar to an SLA agreement that considersusers' privacy profiles and a willingness on behalf of the store toprovide privacy preserving functionality. Visual Fog devices, sensors,and gateways may further implement a PLA policy using hardenedmechanisms wherein a trusted execution environment (TEE) such as IntelSGX or ARM TrustZone establishes a tamper-resistant environment thatenforces the PLA policy.

FIG. 41 illustrates an example visual workload graph 4100 for performingMTMCT and ReID. Example workload 4100 includes a plurality of tasks,including preprocessing 4102, detection 4104, tracking 4106, matching4108, and database access 4110. Further, the dependencies between thesevarious tasks are represented by the solid and dotted lines in theillustrated example. Moreover, the solid lines represent unrestrictedaccess or transmission of the original visual data, while the dottedlines represent restricted or privacy-preserving access or transmission(e.g., transmitting only visual metadata, such as feature vectors). Inthis manner, a privacy policy can be defined for the workload, forexample, by specifying whether each task has unrestricted access orrestricted access to the original visual data.

FIG. 42 illustrates an example of an edge-to-cloud device connectivitygraph 4200. In the illustrated example, graph 4200 illustrates theconnectivity between various devices of a 3-tier edge-to-cloud network,which includes cameras 4210 a-c, gateways 4220 a-b, and the cloud 4230.In particular, the device connectivity is illustrated for bothedge-to-cloud communications (e.g., camera to gateway to cloud) as wellas peer-to-peer communications (e.g., gateway-to-gateway). Moreover, theconnectivity between the respective devices is represented using solidand dotted lines. For example, the solid lines represent high-securityconnectivity links, while the dotted lines represent limited-securityconnectivity links. In this manner, a privacy policy or privacy levelagreement (PLA) can be defined for an edge-to-cloud paradigm, forexample, by specifying the requisite security for each edge ofconnectivity in the graph.

FIG. 43 illustrates a privacy-preserving workload deployment 4300. Inparticular, workload deployment 4300 illustrates an example deploymentof the workload 4100 of FIG. 41 on edge-to-cloud network 4200 of FIG.42.

In the illustrated example, privacy is treated as an explicit constraintwhen performing task-to-device mapping to deploy the workload. In someembodiments, for example, workloads can be represented in linear formsto enable the mapping problem to be solved efficiently using state ofthe art integer linear programming (ILP) solvers.

In some embodiments, for example, when scheduling a particular workloadon an edge-to-cloud network, the workload and the edge-to-cloud networkmay each be represented using a graph, such as a directed acrylic graph(DAG). For example, the workload and its underlying tasks may berepresented by a workload or task dependency graph G_(T)=(V_(T), E_(T)),where each vertex v∈V_(T) represents a task, and each edge (u, v)∈E_(T)represents a dependency between task u and task v. Similarly, theedge-to-cloud network may be represented by a network or deviceconnectivity graph GD=(V_(D), E_(D)), where each vertex v∈V_(D)represents a device in the network, and each edge (u, v)∈E_(D)represents the connectivity from device u to device v.

Moreover, the privacy policy (PP) for each task dependency in theworkload graph may be defined using a PP function p: E_(T)→

N, such that the smaller the number (

), the more vulnerable the data transmission. Similarly, the privacylevel agreement (PLA) for each connectivity link in the deviceconnectivity graph may be defined using a PLA function s: E_(D)→

N, such that the smaller the number (

), the more secure the link.

In this manner, based on the privacy policy (PP) and privacy levelagreement (PLA) functions, a privacy constraint (PC) can be defined ass(d)≤p(e), ∀e∈E_(T), d∈f(e), where f: E_(T)→x_(i=0) ^(k)E_(D) is themapping function from a particular workload to the edge-to-cloudparadigm. Essentially, f maps an edge in a workload graph to a path inan edge-to-cloud connectivity graph. For example, in the context ofvisual fog computing, f is a scheduling function that determines theparticular fog devices that the tasks of a workload should be assignedto, along with the particular network connectivity links between pairsof fog devices that should be used for the data transmissions.Accordingly, the above privacy constraint (PC) requires the privacylevel agreement (PLA) of a particular connectivity link to be capable ofaccommodating the privacy policy (PP) of a particular data transmissionsent over that connectivity link. For example, in some embodiments, adata transmission of PP level 1 (unrestricted access) can only map to alink of PLA level 1 (high security), while a data transmission of PPlevel 2 (privacy-preserving) can map to connectivity links of PLA level1 (high security) and PLA level 2 (limited security).

Moreover, in some embodiments, a visual fog schedule that adheres to theabove privacy constraint (PC) can be determined using integer linearprogramming (ILP). Integer linear programming (ILP) is a mathematicaloptimization or feasibility technique for solving or optimizing amathematical model represented by linear relationships. In particular,ILP can be used to optimize a linear objective function, subject toadditional linear equality and linear inequality constraints. In somecases, for example, an ILP problem can be expressed as follows:

minimize: c^(T)x (objective term) subject to: Ax ≤ b (inequalityconstraint) Cx = d (equality constraint) and: x ∈ {0, 1}^(K) (binaryconstraint).

Moreover, this ILP model can be used to determine an optimal schedule fthat satisfies a specified objective (e.g., total network utilization),while also adhering to other additional constraints, such as a privacyconstraint and any other device, network, or mapping constraints. Forexample, when using the example ILP model above to perform visual fogscheduling, x presents the collection of possible schedules f, K is thelength of x, the objective term presents a scheduling objective to beminimized (e.g., total network utilization), and the inequality/equalityconstraints present any additional constraints, such as device, network,mapping, and/or privacy constraints. The above privacy constraint (PC),for example, can be presented as an inequality constraint of the ILPproblem.

FIG. 54 illustrates a flowchart 5400 for an example embodiment ofprivacy-preserving distributed visual processing. In some embodiments,for example, flowchart 5400 may be implemented using the visualcomputing embodiments described throughout this disclosure (e.g., theprivacy-preserving distributed visual processing techniques of FIGS.41-43 and/or the visual computing architecture described throughout thisdisclosure).

The flowchart may begin at block 5402 by identifying a new workload. Insome embodiments, for example, the new workload may include a pluralityof tasks associated with processing sensor data captured by one or moresensors. For example, in some embodiments, the sensor data may be visualdata captured by one or more vision-based sensors (e.g., a camera,infrared sensor, and/or laser-based sensor).

The flowchart may then proceed to block 5404 to generate a workloadgraph based on the workload. In some embodiments, for example, theworkload graph may include information associated with the underlyingtasks of the workload, along with the task dependencies among thosetasks.

The flowchart may then proceed to block 5406 to generate or identify adevice connectivity graph. In some embodiments, for example, the deviceconnectivity graph may include device connectivity informationassociated with a plurality of processing devices, such as edge, cloud,and/or intermediary network processing devices. The device connectivityinformation, for example, may include information associated with thedevice connectivity links among the plurality of processing devices.

The flowchart may then proceed to block 5408 to identify a privacypolicy associated with the workload and/or its underlying tasks. In someembodiments, for example, the privacy policy may comprise privacyrequirements associated with the task dependencies among the workloadtasks.

The flowchart may then proceed to block 5410 to identify privacy levelinformation associated with the plurality of processing devices. In someembodiments, for example, the privacy level information may includeprivacy levels provided by the device connectivity links among theplurality of processing devices. Moreover, in some embodiments, theprivacy level information may be specified by a privacy level agreement.

The flowchart may then proceed to block 5412 to identify a privacyconstraint for workload scheduling based on the privacy policy and theprivacy level information. In some embodiments, for example, the privacyconstraint may require the privacy level of a particular connectivitylink to be capable of accommodating the privacy policy of any taskdependency mapped to that connectivity link for data transmission.

The flowchart may then proceed to block 5414 to determine a workloadschedule. The workload schedule, for example, may include a mapping ofthe workload onto the plurality of processing devices. Moreover, in someembodiments, the workload schedule may be determined based on theprivacy constraint, the workload graph, and the device connectivitygraph. For example, in some embodiments, the workload schedule may bedetermined by solving an integer linear programming model based on theprivacy constraint, the workload graph, and the device connectivitygraph (e.g., as described in connection with FIGS. 41-43). In thismanner, a resulting workload schedule is determined in a manner thatadheres to the privacy constraint. In some cases, the privacy constraintmay require disassociation of the sensed or inferred content (such asdemographic data, user data, or other context) from the workload graph,device connectivity graph, workload schedule, and/or other component ofthe sensor network operation. Furthermore, the workload schedule mayemploy curry functions wherein a privacy constraint may direct thescheduling function to perform an analytics function locally (avoidingdistribution of potentially privacy sensitive data to an aggregation andanalytics node that may be under the control of an untrusted party).Moreover, in some embodiments, a machine learning model may be used tooptimize privacy-constrained workload scheduling.

In some embodiments, the resulting workload schedule may then bedistributed to the plurality of processing devices (e.g., via acommunication interface) in order to execute the workload.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 5402 to continue scheduling new workloads.

FIGS. 44-46 illustrate example embodiments of self-sovereign deviceidentification for distributed computing networks. In some embodiments,for example, a fog node (e.g., IoT sensor, actuator, camera, controller,gateway, and/or any other type of fog node) may be a “multi-tenant” nodethat is capable of participating in multiple different distributedcomputing networks (e.g., visual fog networks). In some embodiments,multi-tenant processing may involve use of a tenant isolationtechnology, such as a Trusted Execution Environment (TEE) (e.g., IntelSGX or ARM TrustZone). Additionally, tenant isolation may be achievedusing operating system-imposed resource restrictions, namespacerestrictions, and/or process access controls, otherwise known as“containers.” Tenant isolation may further be achieved usingvirtualization, where a first VM isolates a first tenant from a secondtenant of a second VM.

Further, certain networks may require a new fog node to be “onboarded”or “commissioned” before the fog node is allowed to access each network(e.g., using the onboarding/commissioning protocols of the OpenConnectivity Foundation (OCF) and/or Intel's Secure Device Onboard (SDO)technology). Many visual computing solutions, however, may assume thatownership of a node is singular, meaning each node has only one owner.Accordingly, ownership disputes may arise from a multi-tenant fog node'sparticipation in multiple fog networks. The true or original owner of amulti-tenant fog node, however, has an interest in avoiding theseownership disputes. Accordingly, many visual computing solutions areunsuitable for multi-tenant fog nodes, which may participate in multiplefog networks while also abiding by each network's onboarding orcommissioning protocols (e.g., as defined by OCF or Intel SDO).

Accordingly, in the illustrated embodiments, a multi-tenant fog node canuse a self-sovereign device identity in order to allow the node owner toretain an assertion of ownership even when the fog node participates in,or roams to, other fog networks. In some embodiments, for example, aself-sovereign identity blockchain may be used to register theidentities of fog nodes or devices. A blockchain, for example, may be adynamic list of records or blocks that are linked and/or secured usingcryptographic approaches. In some embodiments, for example, each blockin a blockchain may include a hash pointer linking to a previous block,a timestamp, transaction data, and so forth. Accordingly, in someembodiments, a blockchain can be used as a distributed ledger forrecording transactions in an efficient, verifiable, and/or permanentmanner. In visual computing, for example, before adding a deviceidentifier for a new fog node, a blockchain may optionally be used toverify that the identifier has not been previously asserted by anothernode. Further, the public key used to verify the device identity of thefog node may also be contributed to the blockchain, allowing the deviceto later prove it is the rightful owner of its identity.

FIG. 44 illustrates an example embodiment of a distributed computingarchitecture 4400 with multi-tenant device identification. In theillustrated embodiment, architecture 4400 includes fog networks A and B4410 a-b, self-sovereign identity blockchain 4420, and new fog device4430, as described further below.

A new fog device 4430 that is seeking to be used in multiple fognetworks 4410, but is not exclusive to any particular fog network, maynot have sufficient resources or capabilities to create and maintainvirtual sandbox environments for each of the fog networks. Moreover,each fog network 4410 may have a large set of its own local fog devicesthat are exclusive to that network and do not roam into other fognetworks. Accordingly, reusing device identifiers may not pose asignificant problem of duplicative identifiers until a new device 4430with a conflicting identity roams into a particular fog network.

There is often a cost associated with changing the identity of a device,however, as credentials, access tokens, and application logic may belinked to the device identity. Moreover, the respective owners ofdevices with conflicting identifies have a self-interest in resolvingthe conflict (e.g., to avoid ownership disputes), but without bearingthe cost. For example, the conflicting devices may respectively vieweach other as “foreign,” and thus each device may want the other“foreign” device to bear the cost of an identity change. Accordingly, toresolve the opposing self-interests of devices with conflictingidentities, a blockchain 4420 may be used to provide a fair algorithmfor giving preference to a device for its use of an identity. In someembodiments, for example, the device that first registered a particularidentity with the blockchain 4420 is given preference in the event of aconflict.

FIG. 45 illustrates an example call flow 4500 for performing nameregistration of a self-sovereign device identity. In some embodiments,for example, registration of a self-sovereign device identity may beperformed before onboarding a new fog device onto a visual fog network.For example, prior to being on-boarded onto a visual fog network, a fogdevice may register its choice of device identity with a blockchain.

Moreover, the blockchain may have a policy for preventing duplicativeidentity registrations, for example, by first checking for duplicatesand only allowing registration if no duplicates exist. For example,duplicative identity detection may be performed by blockchain processingnodes as a requirement for vetting transaction blocks used for identityregistration. In the illustrated call flow 4500, for example, each nodeperforms the following steps:

(1) receive transaction request from new device: TX_(n+1)={S1, “A71C3”},where S1=Sign_K_(alice)(“A71C3”);

(2) compute hash H1=SHA256(“A71C3”);

(3) search hash tree of transaction attributes, whereB_(x-poss)=Search(TxTree, H1);

(4) IF B_(x-poss)=“H1” THEN return ERROR_DUP_FOUND;

(5) ELSE IF B_(x-poss)=“ ” THEN add TX_(n+1) to the current block whereCurrentBlock=[TX_(n+1), TX_(n), TX_(n−1), . . . , TX_(n−m)];

(6) compute new current block hash BH=SHA256([TX_(n+1), TX_(n),TX_(n−1), . . . , TX_(n−m)]);

(7) write BH to the blockchain at B_(curr-pos) (current position); and

(8) insert the tuple (H1, BH, B_(x-poss)) into TxTree.

In some embodiments, however, a less restrictive policy may be used,such as a policy that does not check for duplicates during identity orname registration, and instead relies on dispute resolution to resolveduplicative identities. For example, at the time a device is on-boardedonto a new fog network, the blockchain can be consulted to determine ifthe identifier has previously been used, and if so, conflict resolutioncan be performed. The advantages of a less restrictive policy includeimproved performance and the ability to support mass registrationworkloads, among other examples.

FIG. 46 illustrates an example call flow 4600 for conflict resolution ofself-sovereign device identities. In some circumstances, for example, itmay be unnecessary to verify that a new device identifier is globallyunique at the time of registration, and instead, conflicting identitiesmay be addressed when a new device is on-boarded onto a local fognetwork and an existing device already has the same identity. Forexample, privacy goals may be achieved by using non-global identifiersand by switching identifiers when interactions involve an entity from aforeign network. Achieving privacy goals may result in more frequentdevice ID collisions that are resolved dynamically (rather than astrategy that involves manufacturers supplying globally unique IDs thatsubsequently may be used to cross-correlate a diverse set oftransactions occurring on multiple networks and involving multipleowners and users).

Accordingly, in some embodiments, conflicting device identities on aparticular fog network may be resolved using conflict resolution callflow 4600. In the illustrated call flow 4600, for example, a blockchainis used to resolve conflicts based on identity registration priority(e.g., the first device that registered a duplicative identity with theblockchain receives preference). Accordingly, this approach does notrequire device identifiers to be globally unique, but in the eventmultiple devices on the same fog network have the same identity, itrequires one of the devices to select a different identifier wheninteracting with that particular network. Moreover, the dispute overwhich device should pay the cost of changing its identity is resolvedusing the blockchain. By way of comparison, FIG. 47 illustrates anexample of device onboarding or commissioning in a visual fog networkwithout employing conflict resolution.

In this manner, based on the illustrated embodiments of FIGS. 44-46,device identity assertion can be performed at any time duringmanufacturing of a device, such as a system-on-a-chip (SoC) or any othertype of computing chip, circuit, or device. Moreover, rather than anassertion of device “ownership,” device identity assertion involves anassertion of identity ownership, where the device is the owner of theidentity. Accordingly, any appropriate entity within the supply chain ofa particular device (e.g., an original design manufacturer (ODM),original equipment manufacturer (OEM), distributor, retailer,value-added reseller (VAR), installer, or end customer) may assert theidentity of a device based on the sophistication and capability of theparticular entity.

FIGS. 48 and 49 illustrate example embodiments of algorithmidentification for distributed computing using a self-sovereignblockchain.

Distributed computing interoperability depends on agreement amongparticipating nodes regarding the particular algorithms used to processinformation at each node. In some cases, for example, algorithmagreement among nodes may depend on a central authority that manages aregistry or database of algorithm identifiers. In this manner,distributed nodes must rely on the registry for selection of theappropriate algorithms, otherwise interoperability is not achieved.

This dependence on central authorities can lead to service disruptions,however, such as when a registry goes offline, a registry is slow topublish new algorithm identifiers (e.g., thus slowing the pace at whichnew algorithms can be deployed), a central authority becomes the targetof politicizations (e.g., registration requests are held in ransom forprocessing fees, political favors, and/or other forms of manipulationthat are not tied to the economics of the distributed computingapplication), and so forth. For example, these approaches are oftenhighly centralized and may involve international or governmentalinstitutions, which may be prone to politicizations and/or governmentregulation (e.g., net neutrality). Moreover, since agreement on whichalgorithms to use is fundamental to distributed computing, a centralizedapproach for managing algorithm identifiers can create an artificialbottleneck or choking point, and entities seeking to impose regulationor control can effectively leverage the centralized design to restrictor prevent interoperability among distributed computing nodes.

Accordingly, in the illustrated embodiments of FIGS. 48 and 49, ablockchain is used to register a collection of distributed computingalgorithms (e.g., using self-sovereign algorithm identifiers). In someembodiments, for example, the blockchain may process an algorithmregistration request as a blockchain transaction, where the registrantselects a unique algorithm identifier and specifies the algorithmfunction. In various embodiments, the algorithm function may bespecified in human-readable form (e.g., as a natural languageexplanation or pseudocode), machine-readable form, and/ormachine-executable form. Moreover, as a condition or prerequisite toaccepting the algorithm registration, the particular algorithm may besubjected to various levels of “certification” by blockchain processingnodes. In this manner, an algorithm may be accepted with progressivelevels of assurance without altering the registered algorithmidentifier.

Accordingly, the described embodiments allow anyone that discovers auseful distributed computing algorithm to make that algorithm known andavailable to a large community. Blockchain networks, for example, arepresumed to be large in number and open to large communities of users.In this manner, members of the community can build distributed computingsystems without being hindered by bureaucratic roadblocks and oversight.As a result, the time between algorithm development and practicaldeployment can be minimized.

FIG. 48 illustrates an example embodiment of a distributed computingarchitecture 4800 with self-sovereign algorithm identification. In theillustrated embodiment, architecture 4800 includes fog networks A and B4810 a-b, along with a self-sovereign blockchain 4820 for registeringand identifying distributed computing algorithms 4430. In someembodiments, for example, architecture 4800 could be used to registerand/or identify algorithms used for visual fog computing.

As an example, if a useful distributed computing algorithm 4430 isinvented, discovered, and/or improved upon in a first fog network (e.g.,fog network A 4810 a), the first fog network may register the newalgorithm in a self-sovereign blockchain 4420 used for algorithmidentification. The blockchain processing nodes of the blockchain 4420may then progressively vet the algorithm in order to provideprogressively stronger assurances regarding its legitimacy (e.g., basedon the computational properties and outcome of the algorithm). Moreover,a second fog network (e.g., fog network B 4810 b) may subsequently benotified of the availability of the new algorithm, and may determinewhether the new algorithm has been adequately vetted (e.g., byconsulting the vetting status of the algorithm in the blockchain 4420).If the second fog network is satisfied with the vetting of the newalgorithm, the second fog network may agree to use the algorithm. Forexample, in some embodiments, after the algorithm has been adequatelyvetted, the first fog network and second fog network may agree to beginusing the new algorithm.

In some embodiments, the algorithm registration and vetting process mayinvolve: (1) registration of a self-sovereign algorithm identifier(SSAI); (2) peer-review of a human-readable description of thealgorithm; (3) machine analysis of a machine-readable representation ofthe algorithm (e.g., analysis by a logic processor to identify safebehavioral properties); and (4) execution of a machine-executableimplementation of the algorithm (e.g., execution in a sandboxenvironment used to analyze expected behavior). Moreover, once a certainthreshold (e.g., a majority) of blockchain processing nodes orevaluators achieve similar vetting results, the algorithm identity andits vetting criteria/results are recorded in a block of the blockchain4420.

FIG. 49 illustrates an example call flow 4900 for registering adistributed computing algorithm using a self-sovereign blockchain. Insome embodiments, for example, an algorithm may be registered using aself-sovereign blockchain to facilitate use of the algorithm across oneor more distributed or fog computing environments. In some cases, forexample, a distributed computing environment may be referred to asFunctions-as-a-Service (FaaS) or “serverless” functions where thecompute environment performs particular function(s), and where thefunction name is registered with a blockchain and disambiguated fromother functions such that all computing nodes agree regarding thefunction name and semantics. Moreover, in some embodiments, theblockchain may leverage various levels of vetting to ensure thealgorithm behaves as expected, and verify that the algorithm identifieris not already in use.

In the illustrated call flow 4900, for example, each blockchainprocessing node performs the following steps:

(1) receive transaction request from new device: TX_(n+1)={S1, “91E21”},where S1=Sign_K_(alice)(“91E21”, “Human-readable-description”,“Machine-readable-description”, “Machine-executable-implementation”);

(2) optional algorithm vetting (e.g., peer-review of a human-readablealgorithm description, logical analysis of a machine-readable algorithmdescription/representation, sandbox execution of a machine-executablealgorithm form);

(3) compute hash H1=SHA256(“91E21”);

(4) search hash tree of transaction attributes, whereB_(x-poss)=Search(TxTree, H1);

(5) IF B_(x-poss)=“H1” THEN return ERROR_DUP_FOUND;

(6) ELSE IF B_(x-poss)=“ ” THEN add TX_(n+1) to the current block, whereCurrentBlock=[TX_(n+1), TX_(n), TX_(n−1), . . . , TX_(n−m)];

(7) compute new current block hash BH=SHA256([TX_(n+1), TX_(n),TX_(n−1), . . . , TX_(n−m)]);

(8) write BH to the blockchain at B_(curr-pos) (current position); and

(9) insert the tuple (H1, BH, B_(x-poss)) into TxTree.

Once the vetting process completes, the blockchain contains a vetted andregistered instance of the algorithm and its associated identifier. Inthis manner, distributed computing nodes may then begin using thealgorithm (e.g., based on the algorithm identifier and optionally itsmachine-readable and/or machine-executable forms).

FIG. 91 illustrates a flowchart 9100 for an example embodiment of adevice identity blockchain. In various embodiments, for example,flowchart 9100 may be implemented using the visual computingarchitecture and functionality described throughout this disclosure.

In some embodiments, for example, a device identity blockchain may beused to manage self-sovereign device identities for a collection ofdevices that are capable of participating in and/or communicating overmultiple networks (e.g., IoT devices capable of participating inmultiple IoT networks, cameras/sensors capable of participating inmultiple visual fog networks, and/or any other type of device capable ofparticipating in multiple distributed computing networks). Moreover, insome embodiments, the device identity blockchain may be managed by oneor more blockchain processing devices. For example, in some cases, acollection of blockchain processing devices may collectively manage adevice identity blockchain in a distributed manner.

Accordingly, a particular device can register its associated deviceidentity with the device identity blockchain before the device joins oneor more distributed computing networks. In this manner, when the devicesubsequently attempts to onboard onto particular network(s), thenetwork(s) can query the device identity blockchain to verify that thedevice is the true owner of its asserted device identity.

For example, when a new device attempts to onboard onto a particularnetwork, the blockchain processing device(s) may receive an identitylookup request from the network, which may request the blockchaindevices to lookup or search for a transaction in the device identityblockchain that is associated with the device identity asserted by thenew device. The corresponding device identity transaction may then betransmitted back to the network, thus allowing the network to verifythat the device identity asserted by the new device is actually owned byor registered to that device. As the device attempts to onboard ontoother networks, a similar process may be followed so that those networkscan similarly confirm that the new device is the true owner of itsasserted identity.

The flowchart begins at block 9102, where a device identity transactionis received from a first device. In some embodiments, for example, thedevice identity transaction may contain and/or indicate a deviceidentity, a digital signature, and/or a public key associated with thefirst device.

The flowchart then proceeds to block 9104, where a hash of the deviceidentity is computed (e.g., using Secure Hash Algorithm 2 (SHA-2) or anyother suitable hash algorithm).

The flowchart then proceeds to block 9106 to determine, based on thecomputed hash, whether the device identity is already registered in thedevice identity blockchain. In some embodiments, for example, a hashtree associated with the device identity blockchain may be searched todetermine whether the blockchain contains an existing transactionassociated with the hash.

If the answer at block 9106 is YES, the flowchart then proceeds to block9108, where an error is returned/transmitted to the first device toindicate that the device identity is already registered.

If the answer at block 9106 is NO, the flowchart then proceeds to block9110, where the device identity transaction is added to the deviceidentity blockchain. In some embodiments, for example, the deviceidentity transaction may be added to a current block of recenttransactions associated with the device identity blockchain. Once thecurrent block is complete, the current block may then be hashed andwritten to the device identity blockchain. In this manner, once thedevice identity transaction has been added to the blockchain, an errorwill be returned if other devices subsequently attempt to register thesame device identity.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 9102 to continue processing device identity transactions.

FIG. 92 illustrates a flowchart 9200 for an example embodiment of ablockchain for managing distributed computing algorithms. In variousembodiments, for example, flowchart 9200 may be implemented using thevisual computing architecture and functionality described throughoutthis disclosure.

In some embodiments, for example, an algorithm blockchain may be used tomanage the algorithms used by processing devices of distributedcomputing network(s) (e.g., algorithms used by IoT devices on IoTnetwork(s), algorithms used by cameras/sensors and/or other processingdevices on visual fog network(s), and/or algorithms used by any othertype of device for any type of distributed computing network). Moreover,in some embodiments, the algorithm blockchain may be managed by one ormore blockchain processing devices. For example, in some cases, acollection of blockchain processing devices may collectively manage analgorithm blockchain in a distributed manner.

In this manner, as new algorithms are developed for devices ofdistributed computing network(s), the algorithms can be submitted to thealgorithm blockchain, vetted, and then added to the blockchain after theappropriate vetting is complete. In this manner, once a new algorithm isadded to the blockchain, that algorithm can then be used by devices ofcertain distributed computing network(s).

For example, a first network may submit a new algorithm to theblockchain processing device(s), and the new algorithm may subsequentlybe added to the algorithm blockchain after the appropriate vettingand/or validation is performed). A second network may then be notifiedthat the new algorithm is available, and the second network may thenquery the algorithm blockchain to verify that the new algorithm isavailable and has been properly validated or vetted.

For example, after the second network is notified of the availability ofthe new algorithm, the blockchain processing device(s) may receive analgorithm lookup request from the second network (e.g., which specifiesthe algorithm identifier). The blockchain processing device(s) may thensearch the algorithm blockchain to identify the algorithm registrationtransaction associated with the algorithm identifier, and thecorresponding algorithm registration transaction may then be transmittedto the second network. If the second network determines that the newalgorithm has been properly vetted (e.g., based on the validationinformation contained in the algorithm registration transaction), theunderlying devices in the second network may then begin to use the newalgorithm.

The flowchart begins at block 9202, where an algorithm registrationtransaction is received from a particular network (and/or from a deviceassociated with that network). The algorithm registration transaction,for example, may contain an algorithm identifier, a description of analgorithm, and/or a representation of the algorithm (e.g., amachine-readable and/or machine-executable representation of thealgorithm).

The flowchart then proceeds to block 9204, where certain tests areperformed in order to validate the algorithm. For example, therepresentation of the algorithm may be analyzed to identify one or morebehavioral properties (e.g., to identify behavior that is either deemedsafe or otherwise unsafe/insecure/malicious). The representation of thealgorithm may also be executed (e.g., in a sandbox) and its executionmay be monitored and/or analyzed. In some cases, these validation testsmay be collectively performed by the blockchain processing devices.

Once the blockchain devices have finished vetting the algorithm, theflowchart then proceeds to block 9206 to determine whether the algorithmhas been validated. If the answer at block 9206 is NO, the flowchartthen proceeds to block 9208, where the algorithm is rejected. If theanswer at block 9206 is YES, the flowchart then proceeds to block 9210,where the algorithm registration transaction is added to the algorithmblockchain. One or more networks may then be notified of theavailability of the algorithm, and devices on those networks may beginto use the algorithm.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 9202 to continue processing algorithm registration transactions.

Applications

The visual fog architecture and embodiments described throughout thisdisclosure can be used for a variety of large-scale visual computingapplications and use cases, such as digital security and surveillance,business automation and analytics (e.g., retail and enterprise),transportation (e.g., traffic monitoring, navigation, parking,infrastructure planning, security or amber alerts), education, videobroadcasting and playback, artificial intelligence, and so forth.

As an example, the described embodiments could be used to implementwearable cameras for first responders that are capable of automaticallydetecting events or emergency situations and performing certainresponsive measures, such as notifying the appropriate personnel,triggering recording of the event by related or nearby cameras, and soforth.

As another example, the described embodiments could be used to implementa digital surveillance and security (DSS) system with people search orfacial recognition capabilities across visual data streams from multipledifferent cameras, sensors, and/or locations.

As another example, the described embodiments could be used to implementa digital surveillance and security (DSS) system with license plateidentification and fraud detection capabilities (e.g., identifying a carwith a license plate that does not match the corresponding vehiclerecord, identifying multiple cars with same license plate, and soforth).

As another example, the described embodiments could be used to providecustomer insights and analytics (e.g., for retail shoppers), such as anintra-store shopper trip summary (e.g., a list of products ordepartments interacted with by a shopper), an inter-store shopper tripsummary (e.g., identifying repeat customers by differentiating betweennew and returning customers as they enter a store with a single ormultiple locations), and so forth.

Similarly, the described embodiments could be used to providevisualization of customer or shopper insights and analytics (e.g.,visualizing a graph representation of visual metadata for humanconsumption).

As another example, the described embodiments could be used to performautomated demographics identification in a privacy-preserving manner(e.g., using top-view cameras or sensors for demographic mapping ofgender, age, race, and so forth).

As another example, the described embodiments could be used to performheat mapping in retail stores or other brick-and-mortar environments togenerate a representation of the crowd (e.g., using top-view sensors orcameras and/or multi-modal crowd emotion heat mapping). In someembodiments, for example, heat mapping could be leveraged foroptimization of store layouts, among other examples.

As another example, the described embodiments could be used to implementmulti-modal real-time customer reviews. For example, customer reviewsand/or customer satisfaction information could be collected and analyzedin real-time using multi-sensory data, which can be translated intoquantitative customer-to-customer reviews for any products or in-storeactivities of a particular store or brick-and-mortar environment.

Similarly, the described embodiments could be used to implementmulti-modal retailer-shopper double review, which may focus oncollection and analysis of both product reviews from customers andcustomer reviews from retailers.

As another example, the described embodiments could be used forautomated customer satisfaction analysis. For example, visual data couldbe used to measure customer satisfaction at check-out based onnon-verbal communication or body language. In this manner, customersatisfaction can be automatically inferred without requiring manualcustomer feedback (e.g., via a button or survey).

As another example, the described embodiments could be used to monitorthe effectiveness of employee-customer interactions. For example, visualdata could be used to measure and track the effectiveness ofcommunication between customers and salespeople with respect to findingdesired products or items. In some embodiments, for example, visual datacould be used to track users within a store, identify customer-employeecontact and interactions, and monitor the employee and/or customerresponses.

As another example, the described embodiments could be used to providedynamic ambience environments by identifying contextual information(e.g., relationships or actions) within a group of people. For example,visual data could be used to identify individuals and their associatedcontextual information to determine whether they are part of the samegroup (e.g., based on physical proximity and/or corresponding movement),and if so, to identify various parameters or characteristics of thegroup (e.g., a family shopping together in a store).

As another example, the described embodiments could be used to implementdouble auction real-time bidding (RTB). In some embodiments, forexample, visual data could be used to implement multi-shopper,multi-bidder real-time bidding (RTB) for brick-and-mortar retailers.

As another example, the described embodiments could be used to monitorand detect changes to store layouts based on visual data and/or sensors.

As another example, the described embodiments could be used for roboticinventory tracking and logistics (e.g., using stationary and/or movingcameras to track inventory of retail stores, warehouses, offices, and soforth).

As another example, the described embodiments could be used for roboticequipment inspection (e.g., using computer vision technology to inspectthe safety and/or health of equipment in a factory, plant, warehouse,store, office, and so forth).

As another example, the described embodiments could be used to provideautomated tipping recommendations, for example, based on multi-sensoryinputs and/or visual data reflective of factors that typically impactcustomer tipping behavior.

As another example, the described embodiments could be used forworkplace automation, such as workplace quality control, employeemonitoring, and so forth. In some embodiments, for example, visual datacould be used to analyze employee emotions in order to improveproductivity.

As another example, the described embodiments could be used foreducation and/or automated learning (e.g., using visual data to analyzestudent behavior in the classroom or at home in order to provide furtherassistance when appropriate).

As another example, the described embodiments could be used for videoplayback, such as user-centric video rendering, focused replays, and soforth. For example, user-centric video rendering could be used toperform focused rendering on 360-degree video by analyzing what the useris focusing on, and performing no or low-resolution processing onportions of the video that are outside the focus area of the user (e.g.,for virtual-reality (VR) and/or augmented-reality (AR) applications). Asanother example, focused video replays could be used to automaticallyfocus the rendering of a video replay on an area of interest, such asthe portion of a sports replay where most players are located.

As another example, the described embodiments could be used to trainartificial intelligence systems. In some embodiments, for example,visual data could be used to automatically generate ground truthinformation that can be used to train artificial intelligence or machinelearning models, such as deep learning neural networks.

As another example, the described embodiments could be used to implementa ubiquitous visual computing witness, as described further below inconnection with FIGS. 55-61.

These examples are merely illustrative of the limitless universe ofvisual applications and use cases that can be implemented using thevisual fog architecture described throughout this disclosure.

Ubiquitous Visual Computing Witness

FIGS. 55-56 illustrate an example embodiment of a ubiquitous visualcomputing witness. A ubiquitous witness addresses the problem ofcollecting evidence for events, incidents, or anomalies of interest in atimely, accurate, and comprehensive manner. For example, the policedepartment is a government agency devoted to law enforcement and publicsafety, which often requires them to conduct investigations intocriminal activity, automobile accidents (e.g., to identify the cause),and so forth. Similarly, a neighborhood watch is an organized group ofpeople devoted to monitoring and preventing crime and vandalism within aneighborhood. These types of functions often require evidence to becollected from various sources, including eye witnesses, physicalenvironments, electronic sources (e.g., surveillance systems), and soforth. The major issues in the aforementioned use cases lie in the factthat often times the most important evidence is sourced from 3^(rd)parties. In a neighborhood watch, for example, a neighbor's camera maycapture a much clearer view of an incident in or around a nearby house.In automobile incident investigations, evidence may need to be collectedand combined from multiple sources, such as nearby cars, roadsideinfrastructure or roadside units (RSUs) (e.g., lamp posts, signage,traffic lights), and so forth. Thus, comprehensive data aggregation andtimeliness are both crucial to the fact-gathering process.

Existing approaches for evidence gathering suffer from variousdrawbacks. For example, there are no automated solutions for evidencegathering. Moreover, for electronic devices that continuously generateand/or stream data (e.g., sensors, cameras), the data retention policiescan be rather short due to resource constraints. For example, data mayonly be retained for a couple of hours for vehicledashboard/surveillance cameras due to limited storage capacity on an SDcard. Further, manual approaches to evidence gathering often facevarious challenges. In particular, ownership of the data can presentproblems, especially in the absence of a shared authority that brokersaccess to the data.

Accordingly, this disclosure describes various embodiments of aubiquitous visual computing witness. In particular, this disclosureproposes a novel new application of a ubiquitous witness implementedusing an infrastructure of visual fog computing and visual fognetworking for various example use cases. Further, the describedubiquitous witness addresses the challenges associated with dataretention and data aggregation in connection with evidence gathering. Inparticular, the ubiquitous witness provides real-time data collectionusing visual fog computing. For example, when an interesting event(e.g., anomalous, unusual, rare) occurs, a snapshot of local data islocked (e.g., securely stored) by the subject device that detected theevent, thus preventing the data from being overwritten. Further, thesubject that detected the event notifies other relevant subjects (e.g.,nearby subjects in many cases) in real time to lock their respectivecounterpart data snapshots. Further, the data retention problem can beaddressed using quality of service (QoS) designations to prioritizewhich data to store versus expire (e.g., visual data versus other formsof data). Further, with visual fog computing, the data may bepreprocessed to save bandwidth for the next step of data aggregation. Inparticular, the ubiquitous witness provides automated data aggregationusing visual fog networking. For example, once data has been retainedand optionally preprocessed by the various subject devices, thecollection of data and metadata distributed across the respectivesubject devices is aggregated using visual fog networking and/orinformation-centric networking (ICN), thus allowing the respective datasnapshots to be associated together and properly stored by the devicesor nodes in the visual fog paradigm.

In this manner, the ubiquitous witness provides various advantages inconnection with evidence gathering. For example, the central or keyevidence associated with an incident is unimpeded by data retentionpolicies, as the relevant subject devices are notified in real time tocollect and lock their respective data snapshots. As another example,information-centric networking (ICN) and/or event-based data routing canbe leveraged to provide a more efficient approach for collecting,aggregating, and/or routing data. In some embodiments, for example,relevant data can be routed by location, time, triggering event, source,destination (e.g., the responsible authorities), and/or any salientattributes describing key features of the event or incident.

FIG. 55 illustrates an example use case 5500 for an automotiveubiquitous witness. The illustrated use case 5500 includes edge devices5510 a-e, fog devices 5520 a-c, and a communication network 5530. In theillustrated example, edge devices 5510 a-e are cars with onboard sensorsand/or cameras for collecting data during operation, while fog devices5520 a-c are traffic lights or other roadside units (RSUs) with sensorsand/or cameras for local or nearby data collection. Moreover,communication network 5530 may include visual fog and/orinformation-centric networking capabilities, which may be used tofacilitate real-time collection and aggregation of data from both cars5510 and RSUs 5520 using event-based data management and storagetechniques. In this manner, a ubiquitous automotive witness may beimplemented using a combination of visual fog computing (VFC) and visualfog networking or information-centric networking (ICN), as describedfurther below in connection with FIG. 56.

FIG. 56 illustrates an example dataflow 5600 for a ubiquitous witness.In some embodiments, for example, dataflow 5600 may be performed inconnection with the example automotive use case illustrated in FIG. 55.

The illustrated dataflow begins at block 5602 by determining whether anincident has been detected. In various embodiments, for example, anincident may be detected by processing sensor data using any suitableapproach, such as identifying unexpected or outstanding changes insensor data (e.g., data from internal sensors of vehicles and/or othertypes of equipment), performing event detection and recognition usingcomputer-vision and/or machine learning techniques, and so forth.

Once an incident has been detected, that will trigger local datacollection by the detecting device (block 5604) along with nearby datacollection by any surrounding devices (block 5608), and the incidentwill also be given a name (block 5610).

For example, at block 5604, the detecting device performs local datacollection, which may involve performing local analytics in order toacquire and/or generate data and/or metadata associated with theincident. The metadata, for example, may include or otherwise identifyregions of interest (ROIs), geolocation names (e.g., addresses, cities,states, zip codes, landmarks, countries), tagging or labels on the sceneof the incident derived using computer vision techniques (e.g., imageclassification or segmentation), weather, and/or any other contextual orcircumstantial information associated with the incident, among otherexamples. Further, the relevant data may be designated with ahigh-priority QoS in order to ensure that the data is retained.

At block 5606, mechanisms are then employed to inform nearby devices ofthe incident, which enables those devices to lock down their data aswell as perform any other actions that may be appropriate in theparticular circumstances and/or use case. For example, in the context ofa neighborhood watch, ZigBee and/or LTE may be used to notify nearbydevices of an incident for data collection purposes, while LTE and/ordedicated short-range communications (DSRC) may be used in the contextof automobile incidents. Regardless of the underlying wirelesscommunication infrastructure, an alert message is routed from the devicethat detected the incident to its neighbors in order to trigger theprocess of locking down the relevant data of the nearby or neighboringdevices (block 5608).

At block 5610, the incident is then given a “name” for identification,routing, and/or networking purposes. In some embodiments, for example,the incident name may be derived using an arbitrary combination ofinformation associated with the incident, such as location, time, event,type of incident, priority/importance/fatalities, image/video capturedof the event, and so forth. In this manner, the concatenation of thisdescriptive information can serve as the event name 5612 for purposes ofrequesting the underlying event data within an information-centricnetwork (ICN), as described further below.

At block 5818, for example, an information-centric network (ICN) may beused to request, route, and aggregate the relevant data (e.g., localdevice data 5614 and/or nearby device data 5616) based on the incidentname (e.g., the attributes associated with the data). In this manner,the network can then route or be queried for data associated with aparticular incident of interest. For example, evidence of theft in aneighborhood watch may be requested and subsequently directed to anearby police station 5822, while evidence of automobile speeding may berequested and subsequently directed to the department of motor vehicles(DMV) 5824 and/or an insurance company.

Moreover, the data associated with an incident may also be stored bycertain network resources 5820 in order to satisfy subsequent queriesrelating to the incident. For example, at block 5826, users may queryfor evidence associated with an incident using the various attributes inthe incident name. For example, a user might only know the approximatetime and place of an incident for purposes of querying the network, andthus the network can disseminate the query to the relevant data stores,and those with relevant data can then reply.

In this manner, a ubiquitous witness can be implemented by leveragingvisual fog computing to perform data processing and/or pre-processing atedge and/or fog nodes, followed by using visual fog networking and/orinformation-centric networking (ICN) to associate and/or aggregate thecollection of evidence for an incident (e.g., data and metadata fromvarious sources), timely route the evidence to the appropriatedestination(s), and/or store the evidence in the appropriate datastores. Further, in some embodiments, a ubiquitous witness may beimplemented within a network topology that leverages “converged node”routers, as described further below in connection with FIGS. 62-63.

FIGS. 57-60 illustrate examples of anomaly detection and eventreconstruction for a ubiquitous visual computing witness. With respectto the automotive industry, for example, vehicles currently comeequipped with an array of sensors designed to sense and record amultitude of data (e.g., speed, direction, fuel levels). These sensorsare often present internally within a vehicle as well as mountedexternally on the vehicle. Externally mounted sensors, for example, mayinclude visual/audio sensors such as cameras that are used for recordingor capturing the road, lane boundaries, surrounding vehicles orobstacles, and so forth. Moreover, with respect to the ongoingdevelopment of connected and autonomous vehicles, the range andfunctionality of such sensors is only going to increase. Similarly, thenumber of sensors deployed to instrument the roadside infrastructure isalso going to increase dramatically. An important use case for thisenormous volume of collected data is anomaly detection, such as thedetection of an unusual event or incident involving vehicles, people,and/or infrastructure. For example, proximate sensory data can beassimilated in order to reconstruct the sequence of events leading up tothe anomaly in a multi-dimensional manner. Further, when the anomaly isa vehicular accident involving damage to a person or property, this typeof reconstruction can also be used to determine the primary responsibleparties for purposes of restitution and insurance, particular in theabsence of traditional eye witnesses.

Currently, however, the data generated by the various sensors invehicles and roadside infrastructure is often isolated, as it is oftenstored in separate vendor- or application-specific clouds. There arevarious reasons for this, including but not limited to the following:(1) sensors within a single vehicle may be deployed by differentmanufacturers and their respective data may be routed to vendor-ownedclouds; (2) obtaining data from nearby vehicles is often difficult, asthe vehicles may be manufactured by different vendors that havedifferent ways of capturing and storing information, includingpotentially different proprietary formats for sensory data; and (3) theentities involved may or may not be available or traceable in the firstplace.

Accordingly, with respect to existing solutions, sensor fusion existsstrictly within each individual vehicle and is strictly siloed by eachsensor vendor. Thus, sensor fusion can only be leveraged to aggregateimage data collected from the field of view of each vehicle inisolation. Moreover, while existing video aggregation solutions cancollect streams from multiple cameras (e.g., infrastructure-basedsolutions such as video surveillance or augmented reality), thosesolutions are ineffective when the sensors are owned by multipledifferent manufacturers, their “black box” data is generallyproprietary, and there is very little cross-organization access orcoordination. Accordingly, video aggregation and stitching using camerasin roadside infrastructure is typically limited to specific functions(e.g., traffic management services, awareness of road conditions, and/orsurveillance). These respective approaches fall short in addressinganomaly detection in a globally distributed fashion, on the fly (e.g.,in real time), and from multiple parties, particularly with respect tothe fusion of data from both static and mobile entities.

Accordingly, this disclosure presents a solution for multi-dimensionalanomaly event reconstruction for smart automated systems, such asautonomous vehicles and smart cities. In particular, the describedembodiments enable multi-dimensional reconstruction of detectedanomalies, where the multi-dimensional aspect refers to the ability torecreate an event from many different perspectives using multi-modalsensory information from multiple sources. These sources can includesensors, cameras, and/or other audio/visual elements, which may residein multiple vehicles, roadside infrastructure, and/or the “black box” ofinformation required by regulation for each vehicle. The objective is tosolicit enough reconstruction data to recreate the event (which occurredat a particular point in time and space) in multiple dimensions (fromdifferent vantage points), while simultaneously scoping the solicitationwithin a bounded region of relevance.

Anomaly detection and event reconstruction is a multi-stage process thatbegins when a potential anomaly is detected. In some embodiments, forexample, an anomaly may be detected by analyzing sensor data from one ormore sources using any suitable processing techniques (e.g., computervision, machine learning, artificial neural networks). The detection andidentification of the anomaly (e.g., time, location and/or type ofanomaly) may then serve as inputs to the event reconstruction process.In some embodiments, for example, the event reconstruction process mayinvolve (1) digital witness identification, (2) data gathering, and (3)multi-dimensional event reconstruction, as described below.

1. Digital Witness Identification

Once the anomaly is detected, the first stage of the response isidentifying the parties involved, including those involved directly inthe anomaly and those that are digital witnesses to the anomaly, both ofwhich may possess data needed to reconstruct the anomaly.

2. Data Gathering

The second stage involves data gathering from the relevant parties thathave been identified. The data gathering stage can be implemented usingany suitable approach and/or technology, including a cloud-basedsolution that uses IP-based routing, and/or an edge-based solution thatleverages information-centric networking (ICN) or ICN-based routing,among other examples. Further, in some embodiments, a network topologyimplemented with “converged node” routers may be leveraged to facilitatethe data gathering process, as described further below in connectionwith FIGS. 62-63.

3. Multi-Dimensional Event Reconstruction

The third stage then uses the gathered data to perform multi-dimensionalevent reconstruction. In some embodiments, for example,three-dimensional (3D) event reconstruction may be used to recreate theevent from a variety of different types of sensory data (e.g., image,audio, video), using different media-appropriate processing algorithmsto assimilate all the sensory information in a time-synchronizedfashion.

Accordingly, this disclosure presents a novel solution for generalanomaly detection and event reconstruction, which can be leveraged for avariety of use cases, including connected and autonomous vehicles thatlive within a smart transportation infrastructure. In this manner, thesensing capabilities of multiple vehicles and the surroundinginfrastructure can be leveraged for anomaly detection and eventreconstruction purposes.

FIG. 57 illustrates an example use case 5700 for automotive anomalydetection and event reconstruction. The illustrated use case 5700includes a plurality of cars 5710 driving on a road, along with multipleroadside units (RSUs) 5720 on the side of the road (e.g., trafficlights, lampposts, road signs, and/or other roadside infrastructure).The cars 5710 and RSUs 5720 are each equipped with a collection ofsensors and/or cameras for capturing data associated with theirrespective operating environments, along with communication interface(s)to facilitate communication with each other and/or other networks.

Moreover, the illustrated example portrays a snapshot in time and spaceof an automotive anomaly that involves a collision between two vehicles.The collision may be detected and recorded as an anomalous incident(e.g., with details of time and location) by any of the vehiclesinvolved in the collision (either directly involved or indirectlyinvolved as witnesses) and/or the roadside infrastructure or RSUs. Invarious embodiments, for example, an anomaly may be detected byprocessing sensor data using any suitable approach, such as identifyingunexpected or outstanding changes in sensor data (e.g., data frominternal sensors of vehicles and/or other types of equipment),performing event detection and recognition using computer-vision and/ormachine learning techniques, and so forth.

Once an anomaly has been detected, the exact sequence of events leadingup to the collision and slightly beyond can then be reconstructed, asdescribed further below. For example, FIGS. 58-60 present varioussolutions for anomaly detection and reconstruction using both InternetProtocol (IP) networks and Information-Centric Networks (ICN).

With respect to IP-based embodiments, for example, the eventreconstruction process begins by identifying all entities that may haveuseful data for the reconstruction process. In many cases, for example,it can be assumed that potentially relevant entities are those thatreside within a region of interest referred to as the “anomaly coveragearea” 5730 during a particular time window in which the anomalyoccurred. The process of identifying these entities or “witnesses” canbe triggered in multiple ways, including by vehicle(s) involved in theincident and/or nearby roadside infrastructure.

In some embodiments, for example, the process of identifying relevantentities or “witnesses” may be triggered by a vehicle that detects ananomaly, such as a vehicle directly involved in an incident or a nearbyvehicle that merely witnesses the incident. As noted above, for example,many vehicles come equipped with sensors, cameras, and some level ofautomation, and the scope and sophistication of that technology iscontinuously increasing due to the ongoing development of connected andautonomous vehicles. Accordingly, a vehicle may leverage those varioustechnologies to detect an anomalous incident or event (e.g., based on asudden shock, air bag deployment, shock of the impact with anothervehicle, unusual audio or video, and so forth). On detection of theanomalous event, the vehicle system triggers an alert and generates anautomatic push request to send all sensor logs (including camera videostreams) within a time window that extends pre- and post-incident to thevehicle's cloud systems (e.g., clouds of the vehicle manufacturer,insurer, municipal authorities, and so forth). The cloud, upon receiptof data associated with the anomalous event, may then employ ananalytics engine to perform a search of the visual/sensory data usingtimestamp information to find license plates and other identifyinginformation of the surrounding vehicles and/or infrastructure. Thelicense plate information may then be mapped to the correspondingvehicle owners using a vehicle database (e.g., a publicly availabledatabase maintained by the Department of Motor Vehicles (DMV) in theU.S. or the equivalent in other countries). The cloud engine then sendsout a request for information to the identified vehicles and theirowners to reconstruct the event using an application server.Alternatively, the vehicles involved in the incident can process theirown logs within their own local analytics engine even before the upload,and then through the local analytics engine, identify other vehicles andwitnesses that were within the anomaly coverage area 5730.

Alternatively, the process of identifying relevant entities or“witnesses” may be triggered by roadside infrastructure located withinthe anomaly coverage area 5730. For example, roadside infrastructure mayinclude various types of roadside units (RSUs) with edge and fogcomputing capabilities (e.g., storage, processing,communication/routing, sensors/cameras), such as traffic lights, streetlights, lampposts, road signs, and so forth. In this manner, roadsideinfrastructure within the anomaly coverage area 5730 may detect,witness, or otherwise be alerted to an anomalous incident, and thus maytrigger an alert or response to the incident. For example, theinfrastructure equipment may send sensory data (e.g., video streamingfeeds) from a time window that extends pre- and post-incident to anappropriate authority and/or cloud destination (e.g., the roadside unit(RSU) infrastructure cloud) to provide proof of witness. In this manner,the event reconstruction process is triggered by the roadsideinfrastructure, as described further below in connection with FIG. 58.

FIG. 58 illustrates a process flow 5800 for anomaly detection andreconstruction orchestrated by roadside unit (RSU) infrastructure overIP networks. In particular, the RSU local cloud performs analytics usingobject recognition techniques and generates an event trigger to its ownRSU cloud (block 5802), while simultaneously uploading its content tothat cloud (block 5804). In parallel, the other entities involved (e.g.,vehicles) also upload their data to their own local clouds (block 5806).The RSU cloud performs further analytics, obtains additional informationon the entities involved in the anomaly, and sends queries to the cloudsof those entities to gather their data (block 5808). Those clouds thenrespond with corresponding data that is responsive to the anomaly searchquery (e.g., based on coverage area, time delta) (block 5810). Further,as more data is collected and additional processing is performed,additional entities with potentially relevant data may be identified,and those entities may be queried for their respective data in a similarmanner. The process may continue in this manner until the entire datasetassociated with the anomalous incident has been collected from allentities that have been identified as relevant.

As an example, once the data solicitation requests have been sent out,the responsive data may subsequently be aggregated at the entity thatinitially triggered the process, such as the RSU cloud or its associatedmunicipal authority, the vehicle manufacturer, an insurance provider,and so forth. Further, in some cases, the same anomaly may bereconstructed by multiple different participants, such as the municipalauthorities that own the RSUs (e.g., to improve traffic safetymeasures), the vehicle manufacturers (e.g., to improve their connectedvehicle technology), and the insurance providers (e.g., to understandsocietal accident patterns), largely using the same process describedabove. After the data is gathered, it must then be stitched together tore-create the event. In various embodiments, for example, eventreconstruction may be performed by consolidating sensor data frommultiple sources and perspectives into a multi-dimensionalrepresentation using any suitable processing techniques, such as sensorfusion, computer vision, artificial neural networks, machine learning,and so forth.

In some embodiments, the various clouds may provide applicationprogramming interfaces (APIs) that allow other clouds or entities toquery for and receive data in a format that can be parsed and decoded bythe recipients. Further, each individual database within each individualcloud may be responsible for determining the legitimacy of the entitiesthat request or query for data, including whether they have permissionto receive the responsive data. Similarly, the receiver of the data maybe responsible for determining the authenticity of data received inresponse to its query. In various embodiments, these types of safeguardscan be implemented using an offline process, or they can take place inreal-time if the requisite systems and authorizations for data accesshave been properly deployed and configured.

FIGS. 59-60 illustrates a process flow for anomaly detection andreconstruction over information-centric networks (ICNs). For example, inthe illustrated process flow, it is assumed that the participatingentities shown in the use case of FIG. 57 (e.g., vehicles, surroundinginfrastructure, and/or any other bystanders or witnesses within theanomaly coverage area) are part of an ICN-enabled network. As discussedfurther below, there are two important differences between ICN and IPnetworks that can be exploited to improve operational efficiency in thiscontext.

First, an ICN network is capable of routing data by name (which is oftena series of attributes related to the data, such as its purpose, owner,location, and/or other contextual information) rather than by IPaddress, which enables location-independent routing. This capability canbe leveraged through the use of a “fuzzy request,” which requestsanomaly-related data based on a name that includes the time and locationof the anomaly, as well as a delta of uncertainty, among other potentialcharacteristics or attributes. In this manner, the fuzzy request acts asa query to the network itself, but without having to know the identitiesor IP addresses of the entities that detected the anomaly. Further, thedelta of uncertainty allows responses from any entities that werelocated within a scoped physical region of interest—and that collectedqualifying data of interest—at a time when the anomaly occurred plus orminus a threshold margin of error before and after the anomalous event.

Second, an ICN network offers caching natively at the routing layer,meaning as data passes through a router it may optionally be cached forlater usage (e.g., when the source of the data is unavailable due tomobility, interference, disconnectivity, an energy-saving sleep mode,and so forth). This has the side effect of making data available inmultiple locations and potentially much closer to the requesters, whichsaves precious and often limited network resources. As a result, when afuzzy request is solicited, any witnesses or nodes with data that wascollected within the approximate time and location of the anomaly mayrespond to the fuzzy request, regardless of whether the data was createdor merely cached at that node.

The entities that have the capability to capture, create, process and/orstore sensory data and make it available in a form that can be shared atthe network routing layer are known as the “producers” or “publishers”in an ICN network, while the entities that request information are knownas “consumers” or “subscribers.” The physical network itself is formedthrough the interconnection of the underlying participants using certainconnectivity solution(s) (e.g., LTE, DSRC, Wi-Fi, 5G), and thus thenetwork continuously changes as its participants join and leave (e.g.,as vehicles connect to and disconnect from base stations while movingfrom one cell to another).

This framework enables distributed storage of anomaly information acrossvehicles and roadside infrastructure in the anomaly coverage area, whilealso allowing “subscriber” nodes (e.g., the DMV, insurance companyinvestigation systems, vehicle manufacturer post-accident services) topull together all pieces of the stored view of the anomaly andreconstruct the scene. Given that ICN does not require the underlyingparticipants to be specifically known or identifiable, but insteadmerely requires the name and/or attributes of relevant data to be known,the process of gathering anomaly data from numerous sources is much morestraightforward. Scene reconstruction can then take place in a cascadedand cooperative manner, as described further below.

FIG. 59 illustrates the overall system-level process flow 5900 foranomaly detection and reconstruction via an ICN network, while FIG. 60illustrates the process flow 6000 at an individual node within the ICNnetwork. Turning to FIG. 59, the process flow 5900 begins when one ofthe entities (either a static infrastructure element or a mobile elementsuch as a vehicle) detects an anomaly, such as a collision. Theillustrated example assumes the anomaly is detected by a roadside unit(RSU), which sends an alert to trigger the reconstruction process.

For example, upon detecting the anomaly, the RSU sends a “scopedinterest” packet over the ICN network (block 5902) using multicast inorder to allow the packet to be heard and/or received by the respectiveentities that are within the coverage range of the network. In typicalICN networks, for example, a subscriber sends an “interest packet” thatcontains the precise name of the desired content or data. In this case,however, because the subscriber does not know the exact name of thecontent, the scoped interest packet merely identifies certain attributesof the desired content. Thus, the structure of a scoped interest packetdiffers from traditional ICN interest packets, as a scoped interestpacket is essentially a “fuzzy” request for data that satisfies certaincriteria rather than a request for data with a precise name. In someembodiments, for example, a scoped interest packet may request databased on an approximate location in space and time, such as datacaptured within certain deltas relative to a reference location x,y,z(RefLoc) and a reference time t (RefTime).

The naming convention for such an anomaly re-construction process isdesigned and implemented a-priori to facilitate the search. For example,each participating publisher follows the same naming convention suchthat the object names of the sensory data being recorded are namedconsistently, such as using the following format:

-   -   GeographicalLocation/Date/Timestamp/EntityName.        The geographical location could be a standardized format that is        similar to the naming mechanism for map tiles used to construct        vehicular maps. The date and timestamp reflect the local date        and time for the particular geographical location. The entity        name could reflect a unique identity for a vehicle or the        infrastructure equipment. The query contains the geographical        location, date, and timestamp in the same format as the naming        convention to facilitate an efficient search.

In some embodiments, a scoped interest packet may also identify and/orinclude a “function” for each node to apply to any data collected inresponse to the interest packet, such as a particular processingfunction for aggregating and/or compressing responsive data received atthe intermediate hops before it reaches the original subscriber, thusimproving network efficiency.

The scoped interest packet is received by multiple vehicles or nodes(blocks 5904 and 5906), and each node searches for responsive data andmay also forward the packet along to other nodes (blocks 5908 and 5910).

The process flow of an individual node is further illustrated anddescribed in connection with FIG. 60. For example, turning to FIG. 60,after the RSU has sent a scoped interest packet (block 6002) that isreceived by a vehicle or other node (block 6004), the node checks to seeif another entity has issued a similar interest packet that has beenbuffered in the node's pending interest packet table (block 6006). If asimilar interest packet has already been received, that means the nodehas already seen this request, and thus the node deletes the currentinterest packet (block 6008). If a similar interest packet has not beenreceived, the node has not sent this request, and thus the node performslongest prefix matching for the named content within its cache to searchfor responsive content that matches the query parameters (block 6010).If responsive content is identified, the node then saves the content(block 6014).

However, unlike a conventional ICN where the transaction ends once anode provides matching content in response to an interest packet, herethe node forwards the interest packet to other potentially relevantnodes (block 6014) and also stores the packet in its pending interesttable to avoid processing duplicative interest packets for the samequery or incident. In order to bound the region where the interestpacket propagates, a “scoped” region of interest is defined in theinterest packet, such that the interest packet continues to propagatewithin the scoped region until the requisite “proximity” is exceeded. Insome cases, for example, the scoped region may be defined as a certainradius around the anomalous event, such as a radius that corresponds tothe maximum range or visibility of cameras that could potentiallycapture the event. If a particular node does not find any matchingcontent for a given “scoped interest” packet, that is an indication thatthe query has reached its geographical boundary, and thus the node doesnot forward the packet any further (block 6012).

As responsive data packets are received by the various nodes and endpoints in response to the forwarded scoped interest packet, each nodemay wait for a certain timer T to expire in order to gather allresponses before sending its own response to the scoped interest packet(block 6016). In this manner, the ultimate response contains acomprehensive collection of data from many content providers rather thanonly a single content provider. This approach enables a many-to-one typeof transaction at the network layer, where a single request associatedwith a scoped interest packet can be satisfied by multiple providers whoin turn may forward the scoped interest packet along, although whethereach provider also accumulates responses from multiple providers may bedependent on the type of query and depth of the network. For example,given that many responses may be received at the intermediate nodes, thenodes may choose to aggregate and/or filter the received responsesbefore sending them along with their own response (block 6018).

FIG. 61 illustrates a flowchart 6100 for an example embodiment of aubiquitous visual computing witness. In some embodiments, for example,flowchart 6100 may be implemented using the visual computingarchitecture and functionality described throughout this disclosure.

The flowchart begins at block 6102 by accessing sensor data captured byone or more sensors of a first device. The first device, for example,may be a processing device with one or more processors, sensors, and/orcommunication interfaces. The sensors can include any type of deviceused for capturing data associated with a surrounding or operatingenvironment, such as vision sensors for generating visualrepresentations of a surrounding environment (e.g., cameras, depthsensors, ultraviolet (UV) sensors, laser rangefinders (e.g., lightdetection and ranging (LIDAR)), infrared (IR) sensors,electro-optical/infrared (EO/IR) sensors), internal sensors of vehiclesand other types of equipment, and so forth. In some embodiments, forexample, the first device may be associated with a vehicle and thesensors may include a combination of vision sensors and internalmechanical sensors. Alternatively, the first device may be associatedwith a surveillance system and the sensors may include one or morevision sensors.

The flowchart then proceeds to block 6104 to determine that an incidentoccurred within the vicinity of the first device. In some embodiments,for example, the incident may be detected based on an analysis of thesensor data captured by the sensors of the first device. For example, anincident may be detected by processing sensor data using any suitableapproach, such as identifying unexpected or outstanding changes insensor data (e.g., data from internal sensors of vehicles and/or othertypes of equipment), performing event detection and recognition usingcomputer-vision and/or machine learning techniques, and so forth. Insome embodiments, for example, an anomaly may be identified duringanalysis of the sensor data, and it may be determined that the anomalyis indicative of a particular incident or event. For example, duringsteady-state operation, sensor signals may be monitored and/or recordedto establish a baseline, and an anomaly may be identified when thesensor signals deviate from the baseline, which may be determined usingstatistical analysis, thresholds, rates, and so forth. Alternatively, oradditionally, data from visual sensors may be analyzed using imageand/or video processing techniques to identify an incident and/or eventcaptured in the visual data (e.g., using feature recognition, imageclassification, artificial intelligence, machine learning, artificialneural networks, and so forth). Further, in some embodiments, detectionof an incident may be triggered based on the cumulative detection ofmultiple anomalies, incidents, and/or events over a period of time.

Alternatively, the first device may be notified of the incident byanother device. For example, in some embodiments, the first device mayreceive a notification associated with the incident over aninformation-centric network (ICN), where the notification comprises arequest for data associated with the incident, and where the request fordata comprises an indication of a plurality of attributes associatedwith the incident, which the first device can use to identify relevantdata associated with the incident.

The flowchart then proceeds to block 6106 to identify and preserve dataassociated with the incident. In particular, the sensor data captured bythe first device may be analyzed in order to identify relevant sensordata that is associated with the incident. In some cases, for example,sensor data captured by the first device around the approximate time andlocation of the incident may be deemed relevant to the incident.Accordingly, the relevant sensor data may be preserved, such as bydesignating it with a high priority and/or quality of service (QoS)designation, and storing it on a suitable memory or storage device.Alternatively, in some embodiments, a snapshot of all available sensordata may be preserved in response to an incident, with differentdesignations for the most relevant data versus the remaining data. Inthis manner, the full collection of sensor data will be available forsubsequent processing and/or analysis (e.g., offline), if needed.

The flowchart then proceeds to block 6108 to notify and request datafrom other devices within the vicinity. For example, the first devicemay broadcast/multicast a notification with a request for dataassociated with the incident to other devices within the vicinity of thefirst device. In various embodiments, for example, the notification maybe transmitted over an information-centric network (ICN) and/or anIP-based network. Further, in some embodiments, the notification mayidentify various attributes associated with the incident, and/or a nameor identifier associated with the incident, which the receiving devicescan use to identify relevant data associated with the incident.

The flowchart then proceeds to block 6110 to determine whether tocontinue forwarding the request. For example, when the notification isreceived by other devices within the vicinity of the first device, eachreceiving device may determine whether it has any relevant dataassociated with the incident, as well as whether to continue forwardingthe notification. In some embodiments, for example, each receivingdevice may search for relevant data (e.g., sensor data) based on theattributes of the incident that were provided in the notification, suchas the time and/or location of the incident. Moreover, if relevant datais identified by a particular device, that device may forward thenotification and request for data to other devices within its vicinity.However, if no relevant data is identified by that device, the devicemay decline to forward the notification.

The flowchart then proceeds to block 6112 to consolidate, aggregate,and/or compress the relevant data identified and/or received by therespective devices. For example, as each device identifies its ownrelevant data and also receives relevant data from other devices that itforwarded the notification to, each device may consolidate, aggregate,and/or compress its collection of data before providing data in responseto the notification. In this manner, all relevant data from therespective devices is eventually collected and consolidated in responseto the notification associated with the incident.

The flowchart then proceeds to block 6114 to reconstruct the incidentbased on the consolidated data. In various embodiments, for example,incident reconstruction may be performed by generating amulti-dimensional representation of the incident from the consolidateddata using any suitable processing techniques, such as sensor fusion,computer vision, artificial neural networks, machine learning, and soforth.

The flowchart then proceeds to block 6116 to send the consolidated dataand/or reconstructed incident to an appropriate entity, such as a policedepartment, DMV, insurance company, vehicle manufacturer, or any otherperson or entity that needs the data.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 6102 to continue detecting, reconstructing, and/or reportingincidents of interest.

Converged Node

In the Internet-of-Things (IoT), there are increasing numbers of sensorsconnecting to networks. Many of them, such as cameras, are generatinghigh-volume time-sensitive data streams. Because these sensors arejoining at the very edges of a network, their data typically flows inthe direction from the edge towards the cloud, which is the reversedirection from how the network was originally provisioned. Moreover, thesize of a single data stream can be significant from a bandwidthperspective, and thus often results in latency constraints for real-timeapplications. Furthermore, many of these flows are continuous in nature.Thus, if many high-volume streams simultaneously arrive at and convergeupon the same router, which is often the case in typical hierarchicaland/or wireless network topologies, it is possible that these data flowswill not fit either in memory, local storage, and/or along the next hopin the network (which may lead to denial of service if the router isoverloaded with traffic beyond its capacity). Even when the flows arenot high-volume or continuous, if the number of flows is extremely high,the aggregated bandwidth requirements still might exceed the availableresources (both on and off platform).

These scenarios present a problem of data implosion. Current congestioncontrol techniques are inadequate, as they only partially address theproblem when there are simply too many data streams competing for routerbuffer queue resources in the network. For example, a normal layer 3(L3) router has several strategies to manage an oversized incoming datastream: (1) simply do not forward packets that do not fit (e.g., dropthem); or (2) indirectly signal the source, as well as intermediaterouters, of the mismatch in required bandwidth versus availablebandwidth (e.g., explicit congestion notification (ECN) in IP headers).At the transport layer (e.g., TCP), retransmission timeouts are used todetect congestion to reduce the flow of packets until the congestion iseased. At the application layer, a sender of data has the opportunity to(1) ask or negotiate configuration details up front before the dataexchange begins, or (2) infer from routing hints along the path how tofit the data over the route and/or transform individual data streams(e.g., by taking a data flow out of its original format and convertingit into a format that would fit the most constrained part of the paththrough the system), which can be achieved by dynamically renegotiatingwith the application how to fit the data over the network. Congestioncan also be addressed by adding more resources, such as more bandwidthusing a bigger and more expensive backbone for the aggregated flows, butthat is often a very expensive and impractical solution given theflexibility and potential scale of IoT.

The existing congestion control techniques at the application,transport, and routing layer are insufficient, as the IoT capacityproblem exists due to the increase in flows versus existing capacity,rather than a temporary congestion problem that relates solely to peakor busy hour traffic. Further, adding network capacity without incurringsignificant costs is not possible with the existing solutions.

Although congestion control algorithms seek to minimize data over-run attraditional router nodes in the network, congestion ultimately leads toa growing queue of packets, which increases end-to-end delay. When aqueue overflows, meaning there is no more room to store arriving data, arouter begins to drop packets, which may have a big impact on flows thatrequire the delivery of in-order packets or even a modicum of impact onthe delivery of flows that require reliable (but possibly out-of-order)delivery of packets, which might need to wait a roundtrip for aretransmission of any packet losses. For example, delay and/or packetloss can be highly disruptive, not to mention unacceptable for a cameramounted on a connected car whose data is meant to be archived as theblack box or ground truth for anomalous car or environmental incidents.

Accordingly, this disclosure presents various embodiments of a“converged node” that is designed to efficiently route/process/cachevisual data streams flowing in an N-to-1 manner in edge and fogcomputing systems. The converged node enables the continued transmissionof data even when there is a vast difference between the amount ofincoming data and resources available for the outgoing data. This ispossible due to the collective processing and caching ofcontextually-related streams, such as when multiple cameras captureimages from different but overlapping perspectives.

The basic idea of the converged node is to extend the functionality of atraditional L3 router to comprehend and prevent the implosion of IoTdata flows (e.g., the many-to-1 nature of data flowing upstream from adense camera deployment in a smart environment). Because multipleincoming streams are often contextually related (e.g., in space, time,and possibly other ways), converged node IoT routers offer a newstrategy: process, analyze, and transform the streams together. Forexample, a converged node effectively takes multiple incoming streamsand transforms them into a single output stream by performingtransformative compute functions on them, such as analytics, machinelearning, artificial intelligence, and so forth, which serves as a newkind of “compression.” The new emergent stream is then stored for re-useby contributing and/or nearby stakeholders.

The converged node implicates several new requirements for L3 routers inorder to service IoT deployments that have a need for supporting reversedata flows at scale (e.g., high-volume, continuous, low-latency, and/orhigh-density flows) while avoiding the data implosion problem. Forexample, with respect to a converged node, the network data flowsconverge on the node and may be combined or merged from multipleincoming streams into a single outgoing stream (while in-flight anden-route to somewhere else). The implications of this convergence offlows are that the routing, processing, and compute sub-systems can beco-designed in hardware to support low-latency handling of the data(e.g., via an internal shared data bus or shared memory). The extendedcapabilities of the L3 router, as implemented by the new converged node,are described further below.

The functionality of a converged node can be implemented in software,although additional efficiencies can be gained in a hardware solution(e.g., using accelerators and/or FPGAs). For example, a hardware versioncan employ zero-copy design, which means it would avoid copying/movingdata to each sub-system for consideration, and instead moves thefunctionality/service/operation to the data itself, subscribing to thephilosophy of “moving the compute to the data.”

The converged node provides a solution to network congestion that isscalable in a cost-efficient manner and provides greater performancethan existing solutions. For example, converged node routers can providesignificant cost and performance benefits for network operators andother entities that deploy servers for edge computing in real networks,particularly with respect to video and visual data flows. Additionally,this solution is highly applicable to contexts where the end-to-endreverse flows pass through multiple converged nodes, such as when datais organized by geographic region and thus passes up a hierarchical ormulti-tiered topology (e.g., layered administrative domains or clouds),which is often the case for video surveillance, energy monitoring, andhealthcare use cases, among other examples.

The converged node also provides benefits relating to time-sensitivecapabilities, such as the utility of high-resolution timestamps (e.g.,both to meet time-constrained delivery and time-sensitive coordinationacross multiple streams), implementing time coordinated compute (TCC)capabilities, and so forth.

As noted above, a converged node can be implemented by extending thefunctionality of a traditional router, such as an L3 router. The processflow within this extended “converged node” router may be as follows: (1)comprehend and manage the serious data implosion problem for IoT edgeand fog systems; (2) process multiple contextually-related streamssimultaneously; (3) look beyond packet headers to analyze if and how astream is interesting or notable; (4) look beyond packet headers toanalyze if and how the streams are related and might be “compressed”, inthe broader sense of the term; (5) identify a functional strategy toemerge with a single new stream going forward, which may employdifferent functions for different scenarios, necessitating the abilityto dynamically request and fetch functions/services/methods; (6) cachethe new stream for re-use by contextually-related stakeholders,particularly those that are mobile, wireless, low-power, and/orproximate, for greater resource efficiency; (7) route the new stream inthe reverse direction, which is where it was headed; (8) provide theoption to route the new stream in other directions, e.g., within a localedge cloud and/or across neighboring clouds; (9) co-design the routing,computing and caching sub-systems to minimize time delay on platform;(10) employ zero-copy HW design techniques to implement efficienthand-off of data between sub-systems; and (11) leveragetime-synchronization capabilities in the platform to synchronize acrossmultiple data streams, in preparation for the analysis/transformationphase of the N-to-1 process.

There are various ways in which streams might be considered to becontextually related to each other. For example, in some embodiments, abroad correlation between the name of the content and different streamsmay be used. In an ICN context, all the streams that respond to aspecific ICN Interest packet asking for data with a particular content“name” are considered contextually-related. The system could re-use theentries in the Pending Interest Table (PIT) as the entries in adirectory for “contextually-related” groups. In a non-ICN context, thesystem still can leverage the name of the content or name-likeattributes to organize streams into contextually-related groups, such asthe URL/URI of the content, or the transport packet header tuples (e.g.,sender and receiver addresses and port numbers), or the streamsoriginating from the same subnet address (e.g., same subnet addresspre-fix). The use of name-based techniques is beneficial over usingdeep-packet inspection of the content itself, which is a highlyresource-intensive process. Alternatively, in some embodiments, in thevisual realm, separate from ICN, streams within a “region of interest”(e.g., proximity in space and time) may be organized intocontextually-related groups of packets.

In some embodiments, for example, a converged node may include thefollowing capabilities on top of traditional router functionality: (1)analyzing data in data flows beyond packet headers; (2) defining what itmeans to be contextually-related (e.g., within a geographic region ofinterest, owned by same vendor, running the same version of malwaresoftware, and so forth); (3) collectively processing Ncontextually-related incoming data flows; (4) recommending a function toperform across these flows to “compress” them before they arerouted/cached; (5) transforming the N streams into a single, new,less-resource-consuming data flow; (6) potentially caching/storing thenew stream locally, such as for request and retrieval by nearbyproximate sensors that may have contributed to the new stream and/or bythose who have an interest in the results; and (7) routing the new datastream to its next intended upstream destination, which may be thenorthern direction in which the data was originally flowing, but mayalso include a broader dissemination, such as in the East-West directionto peer clouds or in the southern direction to interested parties.

While these functions are generally described as being performed at asingle converged node in the reverse data flow path (e.g., as shown inFIG. 62), they may be encountered and repeated multiple times in acascading fashion until the data stream reaches its final archivalresting place, as might be the case in a digital surveillance systemthat supports multiple levels of N-to-1 converged data flows. Thisend-to-end data flow and the processing-caching-routing capabilitiessurrounding it may be referred to as a reverse content distributionnetwork (rCDN). The converged nodes are viewed as the extended routersalong the end-to-end path in an rCDN, as shown in FIG. 63.

The converged node differs from previous L3 router solutions in that itrequires the router to look inside the data stream beyond the packetheader but rather focus on the content “packets payload,” which is themore traditional focus of an L3 router. Additionally, the converged nodeis capable of performing its described functionality while the datastreams are in-flight versus post-facto. The converged node routerperforms an N-to-1 transformation, which may represent a range ofprocessing capabilities, including but not limited to compression,encryption, transcoding, labeling, aggregation/grouping some flows intolarger flows based on contextual commonality, sub-sampling, combination(e.g., stitching), and analytics (e.g., which broadly refers to any typeof analysis, whether it is statistical analysis, machine learning (ML),deep learning (DL) or some other form of artificial intelligence ormachine learning).

With respect to the analytics functionality of the converged node, theprocess may take the data out of its original data format and convert itinto another format. This might be the case with summarization ofphenomena within the data stream, such as object recognition and objectcounting, or with the labeling of phenomena within the data stream, tocreate a new stream of metadata that tracks the appearance ofinteresting events in the visual field of view.

A key benefit of the proposed method is that it applies to any dense IoTdeployment suffering from N-to-1 data implosion, whether or not thestreams are video/visual in nature. Furthermore, this technique couplesnicely with information-centric network architectures, although it isnot dependent on them.

There are numerous novel concepts associated with the converged node,including: comprehending and managing the serious data implosion problemfor IoT edge and fog systems; processing multiple contextually-relatedstreams simultaneously; looking beyond packet headers to analyze if andhow a stream is interesting or notable; looking beyond packet headers toanalyze if and how the streams are related and might be “compressed” (ina broader sense of the term); identifying a functional strategy toemerge with a single new stream going forward, which may employdifferent functions for different scenarios, necessitating the abilityto dynamically request and fetch functions/services/methods; caching thenew stream for re-use by contextually-related stakeholders, particularlythose that are mobile, wireless, low-power, and/or proximate, forgreater resource efficiency; routing the new stream in the reversedirection, which is where it was headed; providing the option to routethe new stream in other directions, such as within a local edge cloudand/or across neighboring clouds; co-designing the routing, computing,and caching sub-systems to minimize time delay on the platform;employing zero-copy hardware design techniques to implement efficienthand-off of data between sub-systems; and leveragingtime-synchronization capabilities in the platform to synchronize acrossmultiple data streams, in preparation for the analysis/transformationphase of the N-to-1 process.

Automated Semantic Inference Using Smart Cameras

Machine learning can be used for visual object recognition using smartcameras. For example, a smart camera can leverage machine learning(ML)-based object recognition to detect an object in a camera'sfield-of-view by training an ML engine using a community of similarobjects to produce a reference template (RT). In this manner, when acamera scans a previously unseen field of objects, it applies patternrecognition algorithms that produce template results that are comparedwith reference template (RT) values. A machine learning designer canthen name a reference template in a way that characterizes the objectthat it recognizes. For example, after training several sphericalobjects, the reference template may be given a name such as “ball” or“sphere.” In order to distinguish between different types of objectswith the same shape (e.g., ping pong ball, basketball, soccer ball),additional training is needed for each object. For example, thereference template for “soccer ball” may differ from the referencetemplate for more abstract forms, such as “ball” or “sphere.”

Further, object classification may be used with formal logic modeling(e.g., taxonomies, ontologies, and semantic entailment tags) to describe“things” in terms of a rich class library that relates specific thingsto abstract things. For example, semantic entailment methods build classhierarchies of object abstractions, where objects near the root are moreabstract than objects near the leaves.

There may be various drawbacks associated with these object recognitionapproaches, however. For example, object recognition requires trainingfor each specific object that needs to be recognized. Accordingly,developing a reference template (RT) database for a spectrum of objectsranging from highly abstract to specific requires training that isdesigned for each object classification, which can be labor intensive.Further, recognition of abstract objects typically relies on aconvention that allows less precision in the RT matching probability inorder to avoid false negatives. For example, a weak probability (e.g.,70% match rather than 99% match) may be used to conclude that a moreabstract “ball” is matched when the subjects in view are more specific(e.g., ping pong ball, basketball, soccer ball). This approach wouldfail to match a football, however, which is a ball but is not spherical.Moreover, performing object recognition using the full universe ofreference templates for every object that could potentially be capturedis highly processing intensive and may be infeasible in many cases,particularly for resource-constrained devices.

Further, leveraging semantic modeling for object recognition alsopresents various challenges. For example, semantic libraries typicallyrequire a universal or commonly accepted tagging syntax to be definedfor objects in the hierarchy in order to correctly relate them to anapplication domain, and updates to the model often require human vettingto ensure semantic relationships are accurate. Further, semanticdatabases and ontologies often require large storage resources.Accordingly, it can be challenging to create, maintain, and store acomprehensive semantic library used for object recognition purposes.

Accordingly, this disclosure presents various embodiments forrecognizing scenes captured by cameras in an intelligent and efficientmanner. For example, FIGS. 66-68 illustrate embodiments for performingautomated semantic inferencing of features in visual scenes captured bycameras. These embodiments integrate both machine learning (ML) objectrecognition and semantic modeling technologies within smart cameras,thus enabling more effective reasoning about object interactions thatoccur within the field-of-view of a camera.

In some embodiments, for example, a visual scene captured by a smartcamera may be interpreted, recognized, and/or classified by recursivelyidentifying features (e.g., objects, actions) in the scene using featurerecognition, semantic entailment, and rule-based scene inferencing.

In general, in the context of visual computing, a feature can be anyarbitrary representation of visual data (e.g., videos, images, orsubsets thereof) that describes its distinct characteristic(s), whichallows the feature to be detected in visual data using any type orcombination of visual or image processing techniques (e.g., machinelearning, neural networks, pattern recognition, and so forth). Forexample, a feature can include any aspect or characteristic associatedwith a visual scene, such as an object, action, condition, or anypartial sub-feature(s) thereof, and each feature may be represented at avariety of levels of abstraction (e.g., based on hierarchies offeatures, characteristics, objects, actions, and so forth). With respectto object detection, for example, every object class has a unique set ofcharacteristics or features that can help in detecting objects of thatclass, including size, shape, color (including shade, tone, hue, andtint), arrangement of underlying features or characteristics, and soforth. For example, face detection may be performed by detecting a setof eyes, nose, and lips in the proper arrangement (e.g., eyes abovenose, nose between eyes and above lips), and each of those facialfeatures may themselves be detected based on their underlyingcharacteristics or features.

For example, a feature recognition phase (e.g., object or actionrecognition) may be leveraged to identify or detect an initial set offeatures in the underlying visual data associated with the capturedscene. In this phase, the visual data is processed using machinelearning feature recognition techniques based on an initial collectionof reference templates (RTs) designed for recognizing certaincommonly-detected features. A feature can be any aspect orcharacteristic associated with the visual scene, such as an object,action, condition, and so forth, and each feature may be representedand/or detected at a variety of levels of abstraction. A referencetemplate can be any representation or model associated with a particularfeature that facilitates recognition of that feature using a machinelearning model. In some embodiments, for example, a reference templatefor a particular feature may be generated during the training phase of amachine learning model based on a collection of training imagescontaining the feature. Moreover, in some embodiments, separatereference templates may be trained on a feature at multiple levels ofabstraction.

Based on the feature(s) that are initially detected in the featurerecognition phase, a semantic processing phase can then be leveraged toidentify additional and/or more specific features that the visual datamay be expected to contain (e.g., based on their relationship with theidentified features). For example, an additional feature may be distinctfrom—but related to—a previously identified feature(s), or theadditional feature may simply be a different level of abstraction of apreviously identified feature (e.g., a more-specific version of anabstract feature). In some embodiments, for example, the additionalfeatures can be identified based on a defined ontology, such as anobject ontology that represents or defines a hierarchy of objects andtheir associated relationships at multiple levels of abstraction.

Based on the feature(s) that are initially detected in the featurerecognition phase, a semantic processing phase can then be leveraged toidentify additional and/or more specific features that the visual datamay be expected to contain (e.g., based on their relationship with theidentified features). In some embodiments, for example, the additionalfeatures can be identified based on a defined ontology, such as anobject ontology that defines or represents a hierarchy of objects andtheir associated relationships at multiple levels of abstraction. Insome cases, for example, an additional feature identified using theontology may simply be a different level of abstraction of a previouslydetected feature (e.g., a more-specific version of an abstract objectthat was detected initially), or alternatively, the additional featuremay be distinct from—but related to—the previously detected feature(s).

Based on the additional features that are identified from the ontologyin the semantic processing phase, the corresponding reference templates(RTs) for those additional features can then be retrieved from anappropriate source, such as a local cache on the smart camera or anexternal network resource (e.g., a cloud-based database, repository, orserver). The feature recognition phase can then be performed again usingthese reference templates in order to determine whether any of theadditional features are detected in the visual data, and based on anysuch detected features, the semantic processing phase can similarly beperformed again to further identify additional features that areexpected in the visual data. The process may continue cycling throughmultiple iterations of the feature recognition and semantic processingphases in this manner in order to continue detecting features in thevisual data.

Based on all features that have been detected thus far during thefeature recognition and semantic processing phases, an inferenceprocessing phase can then be leveraged to identify scenes thatpotentially match the visual data, identify additional features that maybe expected in those scenes, and/or ultimately recognize the particularscene represented in the visual data. In some embodiments, for example,the inference processing phase may leverage a collection of inferencerules designed for recognition of different visual scenes. For example,each inference rule may specify various conditions that are typicallyassociated with a particular visual scene. In this manner, theparticular scene associated with an inference rule can be recognized byevaluating the specified conditions against the visual data. If most orall of the conditions for the particular scene are satisfied by thevisual data, then the particular scene may be recognized as a match witha high probability. If few or none of the conditions for the particularscene are satisfied by the visual data, then the particular scene may bedeemed a low-probability match or no match altogether.

In this manner, the visual data may be evaluated against a collection ofinference rules in order to identify inference rules that are potentialmatches. For example, if a particular inference rule is identified as apotential match, but not all conditions of the rule are satisfied, theunmatched conditions may be used to infer additional features that thevisual data may be expected to contain. For example, the unmatchedconditions may specify that certain additional features (e.g., objects,actions) are typically present in the particular scene associated withthe inference rule. Accordingly, based on the additional features thatare identified or inferred during the inference processing phase, thefeature recognition and/or semantic processing phases may be performedagain to (1) determine if the additional features are detected in thevisual data (e.g., based on the corresponding reference templates)and/or (2) identify additional features that are semantically related tothe newly detected features.

In this manner, the process may continue cycling through the featurerecognition, semantic processing, and inference processing phases untilenough features are detected to match the visual data to an inferencerule with a sufficient level of confidence. In some cases, for example,the process may continue until a rule is matched above some thresholdprobability level, a time limit or maximum number of iterations isreached, the rate of progress per iteration falls below a threshold(e.g., few or no additional features are identified with each iteration,the match probability for a particular rule stops increasing with eachiteration or only increases marginally), and so forth. Once an inferencerule is confidently matched, it can then be concluded that the visualdata represents the particular scene associated with that inferencerule, and the scene recognition process may then be complete.

To illustrate, consider an example of visual data corresponding to abeach scene. During the feature recognition phase, both “water” and“ball” may be generically detected in the visual data based on theinitial collection of reference templates. Further, during the semanticprocessing phase, the ontology may indicate that the “ball” is expectedto be a “beach ball” (e.g., based on the presence of both a “ball” and“water”), and thus “beach ball” may be identified as an additionalfeature that the visual data could potentially contain. Accordingly,after retrieving the reference template for “beach ball” and performingfeature recognition using that reference template, it may be determinedthat a “beach ball” is in fact present in the visual data. During theinference processing phase, an inference rule associated with a beachscene may be identified as a potential match based on the presence ofthe “beach ball” and “water” in the visual data, and the inference rulemay further indicate that a “beach towel” is typically expected in ascene with those objects. Accordingly, after retrieving the appropriatereference template and performing feature recognition, a “beach towel”may then be detected in the visual data. This process may continue formultiple iterations until enough features are detected in the visualdata to confidently match the visual data to the beach scene associatedwith the particular inference rule.

This approach is particularly suitable for resource-constrained devicessuch as smart cameras, as it enables them to perform intelligent featureand scene recognition in a resource-efficient manner. For example, thedescribed approach enables a smart camera to focus the scope of itsvisual processing on features and/or scenes that it expects to detect inthe visual data, thus allowing its processing resources to be utilizedmore efficiently. Similarly, the smart camera can limit its locallystored data to that which is required for the focused visual processingscope. For example, the smart camera can locally store certain referencetemplates, ontology data, and/or inference rules that are associatedwith commonly detected features and scenes, while other referencetemplates, ontology data, and inference rules can be retrieved from anexternal resource on an on-demand basis.

Further, in some embodiments, a smart camera may leverage cache warmersto proactively warm its cache(s) with potentially relevant referencetemplates, ontology data, and/or inference rules. For example, based onthe current processing state (e.g., the set of features, ontologicalrelationships, inferences, and/or scenes that have been detected,identified, and/or derived thus far), the cache warmers may identifycertain reference templates, ontology data, and/or inference rules thatare likely to be needed in the near future. Accordingly, the cachewarmers may retrieve the identified reference templates, ontology data,and/or inference rules from the appropriate resource (e.g., acloud-based repository) and load that information into the cache(s) ofthe smart camera. In this manner, when those resources are needed by thesmart camera, they will already be locally available in its cache(s).Thus, storage constraints are reduced by only storing data that iscurrently needed, while access latency is minimized by proactivelyretrieving any additional data that may subsequently be needed.

The described embodiments provide numerous advantages, includingsophisticated reasoning and interpretation of visual scenes in aresource-efficient manner. For example, given a still image of a picnicat the beach, a smart camera can generate metadata (e.g., exchangeableimage file format (XIF) data) that identifies objects within the image(e.g., the sun, a beach ball, and a plate), while also automaticallynaming or categorizing the particular scene represented in the image(e.g., “picnic at the beach”). Further, combined with other contextualinformation such as location data (e.g., GPS data), the auto-generatedname could also include the name of the specific beach (e.g., “picnic atCannon beach”). As another example, this technology could be used for asoccer sporting event to identify and/or distinguish the game ball fromother nearby balls (e.g., balls that are out of play, on the sidelines,and/or in the stands), analyze the field, goal, ball in play, and playerpositions, and/or detect rule violations (e.g., fouls and penalties,such as an offsides player). In this manner, the technology enables thecamera to play a stronger role in refereeing the game. Further, semanticmodeling and ontologies can be leveraged in a manner that enablesdynamic addition of unseen object classes. For example, given a newobject type that is not included in an existing ontology, userinteractions such as crowdsourcing can be leveraged to automaticallycreate a new tag and add it into the ontology or taxonomy.

FIG. 66 illustrates an example embodiment of a scene recognition system6600. In the illustrated embodiment, scene recognition system 6600includes a four-dimensional (4D) smart camera 6610, a central repository6620 for storing scene recognition data (e.g., reference templates,ontologies, and/or inference rules), and a scene or environment 6630 tobe processed by the smart camera 6610.

4D smart camera 6610 may be implemented using 4D smart cameratechnology, which may refer to an enhanced camera technology thatintegrates a variety of underlying technologies, such asthree-dimensional (3D) cameras (e.g., cameras with depth support),specialized machine learning and/or neural network processors (e.g.,Movidius), advanced storage and/or memory technologies (e.g., 3D XPointand Optane), contextual sensors (e.g., location or GPS sensors,accelerometers, gyroscopes), and so forth.

In the illustrated embodiment, for example, 4D smart camera 6610includes the following components:

(1) one or more cameras 6611 and/or other vision sensors for capturingvisual scenes;

(2) training logic 6612 for training machine learning models and/orgenerating reference templates for feature/object recognition;

(3) an object recognition processor 6613, which may include a machinelearning (ML) or neural net computing platform (e.g., Movidius or Neuronplatforms) with access to a reference template (RT) database (e.g.,repository 6620) for feature/object recognition;(4) a semantic processor 6614 with access to: (i) an ontology and/ortaxonomy database (e.g., repository 6620) that relates a rich set ofobjects at various levels of abstraction, and (ii) a tag vocabulary(e.g., repository 6620) derived from the ontology database and used totag objects in the RT database;(5) an inference processor 6615 with access to a set of goal-orientedinference rules (e.g., repository 6620) designed to recognize specificvisual scenes and/or detect “interesting” object interaction conditions(e.g., rule violations during a sporting event, a picnic at the beach,and so forth);(6) local caches 6618 a-c for caching reference templates, ontologies,and/or inference rules retrieved from repository 6620;(7) cache warmers 6617 a-c that continuously update the caches 6618 a-cwith interesting reference templates, ontologies, and rules; and(8) an application interface 6616 to communicate with a visual computingapplication.

In various embodiments, object recognition processor 6613, semanticprocessor 6614, and inference processor 6615 may be implemented usingany suitable combination of hardware and/or software logic, and mayfurther be implemented as separate logical or physical components orcombined into one or more integrated components. In some embodiments,for example, processors 6613-6615 may be implemented usinggeneral-purpose central processing units (CPUs), graphics processingunits (GPUs), and/or special-purpose processors designed for artificialintelligence, machine learning, and/or neural network applications(e.g., using application-specific integrated circuits (ASICs) orfield-programmable gate array (FPGAs)), among other examples.

4D smart camera 6610 enables sophisticated reasoning about objectinteraction semantics in a resource-efficient manner. Initially, atraining phase 6612 may be performed by either smart camera 6610 or byanother camera or device. During the training phase, a camera observestraining scene(s) where known objects are tagged using a tag vocabularysupplied by an ontology. The training agent may optimize the training byselecting a variety of semantically similar objects with differentshapes or dimensions (e.g., football, rugby ball, marble, ping pongball, planet, and so forth), knowing that the object ontology will allow“sphere” semantics to be inferred given that the ontology for “ball”also describes “sphere” as well as other more abstract and more specificrepresentations of “ball.” The reference templates (RTs) are stored in arepository 6620 for subsequent use by 4D smart camera 6610 (or anothersmart camera) to perform object recognition.

For example, subsequent to training, camera 6611 observes a scene 6630containing objects that are matched or recognized using an ML or neuralnet object recognition processor (ORP) 6613 (e.g., Intel Movidius orNeuron). A reference template (RT) cache 6618 a (e.g., Intel 3DXpoint)contains a set of object recognition reference templates designed forcommonly recognized objects. The more frequently an object isrecognized, the greater the probability that the reference template willbe found in the cache 6618 a. Object recognition processor 6613identifies one or more objects (as many as can be found in the scenegiven available resources) and passes them to semantic processor (SP)6614.

Semantic processor 6614 accesses an ontology cache 6618 b to obtain theontology elements that relate the various semantically entailed objectsto a broader (or narrower) semantic context. For example, the ontologymay include class hierarchies of object abstractions, where objects nearthe root are more abstract than objects near the leaves. Semanticprocessor 6614 can reason about the fuzzy equivalence of intermediate orleaf-node objects by traversing the hierarchy to find a common parentnode, or semantic processor 6614 can reason or infer information about aparticular object node based on its child node(s).

The objects identified by semantic processor 6614 are passed toinference processor (IP) 6615, where goal-oriented inference rules areapplied. The rules are a set of matching criteria that, when matched,imply a more significant context or scene (e.g., a soccer game, an eventat the beach). In some embodiments, inference processor 6615 mayoptimize object recognition and semantic entailment by giving hints toexpected objects. For example, if one rule of inference processor 6615describes a “picnic at the beach,” then object recognition processor6613 might expect to find additional objects in the visual data, such as“sun”, “ocean,” “plate,” and so forth.

Object recognition processor 6613 may give processing priority torecognition of expected objects that are identified by either semanticprocessor 6614 and/or inference processor 6615. If found, the newobjects may be processed for semantic entailment by semantic processor6614 and passed to inference processor (IP) 6615, which may morecompletely match one of the possible contexts associated with theinference rules. Hence, 4D smart camera 6610 can optimize rule matchingto focus on the scene context that is most likely to be the actualcontext.

If inference processor 6615 matches a rule with high probability, itdiscloses its choice for the scene context and scenario to anapplication processor 6616 that may be used for improved human-computerinteractions. On the other hand, if inference processor 6615 matches arule with lower probability, it may attempt to improve the probabilityby supplying hints regarding additional expected features or objects (asdescribed above), or its cache warmer 6617 c may send cache updaterequests to the rules repository 6620 directing it to supply “similar”rules that could match with a higher score (e.g., higher than thecurrently identified rule(s)). Similarly, semantic processor 6614 maywarm its cache (e.g., using cache warmer 6617 b) by requesting ontologydata that is “near” the matching ontology elements.

FIG. 67 illustrates a flowchart 6700 for an example embodiment ofreference template training with semantic entailment tagging. In someembodiments, for example, the flowchart of FIG. 67 may be applied as apre-requisite to the flowchart of FIG. 68. Once a reference template(RT) database is sufficiently populated (e.g., using the flowchart ofFIG. 67), it may then be used to perform the operations described inconnection with FIG. 68.

The flowchart begins at block 6702, where the ontology database isloaded into a 4D-smart camera ontology cache. The flowchart thenproceeds to block 6704, where training is performed on a large set ofobjects, resulting in reference templates (RTs) for the trained objects,actions, or other features. The flowchart then proceeds to block 6706,where the RT training engine uses existing ground truth training valuesto find an approximate match to the template value.

The flowchart then proceeds to block 6708, where the RT training engineperforms questions and answers with users to refine the tag selection,using the ontology to navigate to more specific object classifications.

The flowchart then proceeds to block 6710, where it is determinedwhether a majority of the users' answers identify a more specific objectclassification. If the answer at block 6710 is NO, the flowchart thenproceeds to block 6718, where the reference template (RT) is tagged witha generic tag (e.g., a tag obtained from the ontology) and marked forsubsequent question and answer (Q/A) by additional users when available.If the answer at block 6710 is YES, the flowchart then proceeds to block6712.

At block 6712, it is determined whether the user answered classificationis in the ontology cache. If the answer at block 6712 is NO, theflowchart then proceeds to block 6714, where a new tag is added to theontology. If the answer at block 6712 is YES, the flowchart thenproceeds to block 6716, where the reference template (RT) is tagged withthe user identified tag (obtained from the ontology).

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated. For example, in some embodiments, the flowchart may restart atblock 6702 to continue the reference template training process.

FIG. 68 illustrates a flowchart 6800 for an example embodiment of scenerecognition. For example, the illustrated flowchart may be used forrecognizing scenes based on the appearance of objects and actions thatcorrespond to a rule base of scenes that are known to be interesting tothe user.

The flowchart of FIG. 68 combines object and action recognition usingvisual machine learning techniques with semantic processing andinference processing to construct a set of scenes in which sensedobjects and actions may interact. Inference rules describe possible orexpected interaction patterns and may suggest additional expectedobjects and actions that have not yet been detected by the sensor(s)and/or object recognition processor. Hints may be given to the objectrecognition processor and/or sensors in order to better calibrate orfocus the sensing activity for recognition of the expected objects oractions. For example, the hint may allow a lower threshold for MLmatching in order to allow for variance in real-world objects, or it maybe used by a semantic processor to look for adjacent objects or actionsin order to identify reference templates that were not originally partof the RT cache.

This approach makes visual content recognition software and hardware“smarter” by calibrating the scene according to expected or commoninteraction dynamics. This will decrease recognition latency and improverecognition accuracy for assistive user awareness applications.

The flowchart begins at block 6802, where a 4D smart camera objectrecognition processor (ORP) detects features, such as objects andactions, using a reference template (RT) database and/or cache.

The flowchart then proceeds to block 6804, where the object recognitionprocessor associates an RT tag with the sensed template and forwards thetagged-template (TT) to a semantic processor (SP).

The flowchart then proceeds to block 6806 to determine whether anotherobject or action has been recognized. If the answer at block 6806 is NO,the flowchart proceeds back to block 6802. If the answer at block 6806is YES, the flowchart proceeds to block 6808, where given multiple TTinstances, the semantic processor searches the ontology database and/orcache using a tag to identify a common ontology parent.

The flowchart then proceeds to block 6810 to determine whether anexpected object or action is in the current scene. If the answer atblock 6810 is NO, the flowchart then proceeds to block 6822. If theanswer at block 6810 is YES, the flowchart then proceeds to block 6812,where the expected object or action is associated with a current scene,and the scene is then forwarded to an inference engine (IE).

The flowchart then proceeds to block 6814, where the inference engineconsults a rule database and/or cache to match the current scene withother possible scenes.

The flowchart then proceeds to block 6816 to determine whether thecurrent objects match another second scene that is a better fit than thefirst scene. If the answer at block 6816 is NO, the flowchart proceedsto block 6820. If the answer at block 6816 is YES, the flowchartproceeds to block 6818, where the current scene is switched to thesecond scene, and the flowchart then proceeds to block 6820.

At block 6820, it is determined whether additional expected objectsand/or actions are found in the current scene. If the answer at block6820 is NO, the flowchart then proceeds to block 6822. If the answer atblock 6820 is YES, the flowchart then proceeds to block 6824.

At block 6822, recognition hints are sent to the object recognitionprocessor and/or the semantic processor, and the flowchart proceeds backto block 6802.

At block 6824, it is determined whether the score of the current sceneis above an acceptable accuracy threshold. If the answer at block 6824is NO, the flowchart proceeds back to block 6816. If the answer at block6824 is YES, the flowchart then proceeds to block 6826, where thematched scene is reported to a user.

At this point, the flowchart may be complete. In some embodiments,however, the flowchart may restart and/or certain blocks may berepeated.

Visual Fog Stream Multiplexing for Improved Security

Visual Fog deployment scenarios can include thousands of camera sensorstransmitting video streams to thousands of viewers. In live mediastreaming, streams may not be delivered directly from sensor to viewerand may be buffered, streamed, and/or replayed by intermediate nodes.These intermediate nodes, in essence, perform a hop-by-hop routingfunction. This makes it easier for potential attackers to pose asrouting nodes to attempt various types of man-in-the-middle (MITM)attacks.

Existing solutions trust the buffering/routing nodes to avoid‘malicious’ routes and to keep content hidden (if not alreadyencrypted). Since the video streaming formats need to supportintermediate nodes, they are susceptible to malicious transmissioninterception, and there is not much a sender can do to prevent suchattacks. For example, if content is encrypted, the sender and receivermust have the encryption key, but with visual fog use cases, there couldbe thousands of viewers and thousands of senders each requiringdifferent keys. Ensuring the proper keys are available at the right timeis not a scalable solution.

Accordingly, FIGS. 69-70 illustrate example embodiments associated withvisual fog stream multiplexing for improved security. The describedapproach uses intermediate routing capabilities to its advantage byrandomizing the choice of which intermediate node(s) will be used tostream the content. A series of randomized intermediaries can be veryeffective at preventing attackers from anticipating a route (andtherefore targeting a man-in-the-middle attack).

The described approach also multiplexes content across multiple routesso that even if one stream is successfully attacked only a subset of thecontent is subject to attacker manipulations. For example, if anattacker injected frames into a stream, there would be a threshold of Mstreams that are the same versus (N−M) minority of streams that differ.These can be ignored.

Streams can be encrypted on demand using keys generated for eachstreaming session (e.g., using Diffie-Hellman). If the legitimaterouter/intermediary nodes are vetted and a member of an enhanced privacyID (EPID) group, they can authenticate as trusted intermediaries makingit difficult for the attacker to assert itself as an intermediary.Alternatively, group membership may be asserted using traditionalasymmetric cryptography by assigning a group name attribute to acertificate and by recycling asymmetric keys frequently. Anotheralternative based on symmetric key cryptography shares the groupsymmetric key with each group participant and recycles the key each timea group member is removed from the group.

The described embodiments provide numerous advantages. For example, thisapproach increases availability of visual fog video content due tobuilt-in redundancy. In use cases where bandwidth is not a concern,redundancy applies to all frames. In use cases where bandwidth is aconcern, redundancy applies to key frames and optionally applies toother frames. For example, in live media streaming, I-frames must haveredundancy whereas P-frames or B-frames may not have redundancy; in live360 VR video streaming, low-resolution panorama must have redundancywhereas high-resolution user-specific views may not have redundancy.

In addition, the M-of-N threshold mechanism ensures man-in-the-middleattacks are less successful because M successful attacks are required tospoof the viewers. In use cases where bandwidth is a concern, deliveryof key frames, which are needed to reconstruct other frames, isguaranteed.

Further, key management can scale to accommodate the M-of-N andredundancy fan out, EPID group keys can be used to authenticatetrustworthy intermediary/router nodes, and randomization of routes makesit difficult for attacker to target particular content.

FIG. 69 illustrates an example embodiment of a system 6900 for visualfog stream multiplexing.

The system consists of a visual fog camera and/or sensor 6910 and one ormore subscriber (viewers) 6930 of a content stream. Content streams maybe consumed using a set of intermediate nodes 6920 a-g that buffer,store, and forward video content, which are called routing nodes. Theremay be multiple (N) copies of the content stream transmitted from camera6910 to subscriber(s) 6930 so that multiple subscribers may consumecontent discretely (having distinct playback control). Large contentstreams may be divided into multiple content images that are partitionedat the camera 6910 and stitched together at the subscriber 6930.Buffering and other streaming techniques may be used to provide aseamless streaming user experience, if desired.

The illustrated approach produces additional redundant copies that arecommunicated over different routes involving several intermediaterouting nodes 6920. Each routing node 6920 randomizes its selection ofthe next hop node so that potential attackers cannot easily predict afinal route. The subscriber(s) 6930 purposefully subscribe to at least(M) redundant copies of the content so that they can perform an M-of-Ncomparison of redundant streams. The purpose of doing the comparison isto detect possible tampering. For example, if a malicious routing node(R3) inserted itself into a route, there would be (M−1) redundant copiesof the content with which to determine which is the valid copy.

In use cases where bandwidth is a concern, the illustrated approach onlymakes additional redundant copies of key frames, while selectivelyproducing redundant copies of other frames. An application specificratio for determining the percentage of redundancy may be calculatedgiven the network infrastructure. Alternatively, the ratio can also beadjusted online based on QoS (e.g., using a PID controller).

The following function can be used for determining the total number ofroutes: Total=Product(Count(S), Count(N)); where subscriber Sx selects Mcopies from at least N received copies of Total copies sent. Thisapproach is used when it is not practical to implement cryptography, keyexchange, and/or or authentication.

In some cases, it may be practical to implement vetting procedures forrouting nodes where the decision to perform the routing function can becontrolled. Under these conditions the routing nodes are assigned anEPID group credential that authorizes them to function as a routingnode. An EPID group key can be used to authenticate routing nodes:EPID Group_X=(Name_X,Pub_key(K _(X)),Priv_keys(K ⁻¹ _(X0) ,K ⁻¹ _(X1) ,. . . ,K ⁻¹ _(Xz)),where z is the number of routing nodes (R)+subscribers (S)+1 camera (C).

The EPID private key may be used to sign an integrity check valueassociated with each image. Alternatively, if content is to beencrypted, a Diffie-Hellman key exchange may be performed prior tocontent delivery, where G^(A) and G^(B) values are signed by the EPIDprivate key (K⁻¹x_(n)). The routing node (or subscriber) selected toreceive the content verifies the signature using the EPID public key(K_(X)). This ensures only authorized routing nodes can handle thecontent images, thus minimizing the potential for a successfulman-in-the-middle attack.

FIG. 70 illustrates a flowchart 7000 for an example embodiment of visualfog stream multiplexing.

In the illustrated flowchart, for example, a camera may send multiplecopies of an image through a multi-hop routing network, where anattacker cannot easily predict which router or other MITM hosts toattack and cannot easily compromise a threshold T of nodes to fool thesubscriber's threshold policy.

The flowchart begins at block 7002 by determining whether a particularframe is a “key” frame. If the answer at block 7002 is YES, theflowchart proceeds to block 7010. If the answer at block 7002 is NO, theflowchart proceeds to block 7004.

At block 7004, it is determined whether the frame is a redundant frame.If the answer at block 7004 is NO, the flowchart proceeds to block 7010.If the answer at block 7004 is YES, the flowchart proceeds to block7006.

At block 7006, it is determined whether the current redundancy (μ) isgreater than the allowable redundancy (r): μ>r? If the answer at block7006 is NO, the flowchart is complete. If the answer at block 7006 isYES, the flowchart proceeds to block 7008.

At block 7008, it is determined whether the following equation issatisfied:

$0 \leq {1 - \frac{1}{{rand}0}} < {r.}$If the answer at block 7008 is NO, the flowchart is complete. If theanswer at block 7008 is YES, the flowchart proceeds to block 7010.

At block 7010, a frame counter F is incremented: F=F+1. The flowchartthen proceeds to block 7012, where the following equation is computed:

$\mu = {1 - {( {\frac{1}{\mu}*\frac{F}{max\_ frames}} ).}}$The flowchart then proceeds to block 7014, where the camera selects anN>M value.

The flowchart then proceeds to block 7016 to choose a routing nodeR_(x), where x=Count(1,N). The flowchart then proceeds to block 7018 todetermine whether routing node R_(x) is closer to destination S. If theanswer at block 7018 is NO, the flowchart proceeds back to block 7016.If the answer at block 7018 is YES, the flowchart proceeds to block7020.

At block 7020, it is determined whether x is greater than N: x>N? If theanswer at block 7020 is NO, the flowchart proceeds back to block 7016.If the answer at block 7020 is YES, the flowchart proceeds to block7022, where the sender chooses a Diffie-Hellman secret integer a andother values G and P, and computes A=G^(a) mod P. The flowchart thenproceeds to block 7024, where the sender sends message M1 signed by K⁻¹_(Xn).

The flowchart then proceeds to block 7026 to determine whether the nextnode is subscriber S. If the answer at block 7026 is NO, the flowchartproceeds to block 7028. If the answer at block 7026 is YES, theflowchart proceeds to block 7030.

At block 7028, the routing network selects the next routing node atrandom and delivers message M1 to the next node, and the flowchartproceeds back to block 7022.

At block 7030, the subscriber chooses a value M that is less than N, andM/N obtains a threshold value T describing an acceptable ratio.

The flowchart then proceeds to block 7032 to determine whether M/N isgreater than T: M/N>T? If the answer at block 7032 is NO, the flowchartis complete. If the answer at block 7032 is YES, the flowchart proceedsto block 7034.

At block 7034, it is determined whether any message is different in theset of messages M1(0, . . . , N−1). If the answer at block 7034 is YES,the flowchart proceeds to block 7036, where the current route is addedto a blacklist, and a blacklist counter B is incremented. If the answerat block 7034 is NO, the flowchart proceeds to block 7038, where thesubscriber verifies message M1 and views its contents.

At this point, the flowchart is complete. In some embodiments, however,the flowchart may restart and/or certain blocks may be repeated.

Privacy Preserving Visual Question Answering (VQA) with Sanitization

Visual question answering (VQA) involves computing systems that, given acertain visual representation (e.g., an image), are capable ofautomatically answering questions posed by humans in a certain form orsyntax (e.g., natural language). VQA serves as the most fundamentalmeans for end-users to easily interact with an abundancy of visual data.

In real-world settings, videos are recorded practically everywhere(e.g., in all retailers and at every street corner). Brick-and-mortarretailers, for example, may want to collect as much video data aspossible to derive (actionable) shopper insights, while shoppers maywant to prevent the disclosure of their identities and/or other personalinformation.

Existing visual processing systems, however, typically derive analyticsand insights from raw images as input (e.g., by generating attentionmaps), which can compromise the privacy of people captured in theimages, as it may reveal their identity and/or other personalinformation.

Accordingly, this disclosure presents a privacy-preserving VQA systemthat uses intermediate topological spatiotemporal representations tomask the identity of people captured in videos. For example, byinjecting a novel intermediate representation of a person into thevisual processing pipeline, visual queries can be answered withoutrevealing the identity and/or compromising the privacy of the person.

The described approach uses an intermediate sanitized representation ofa raw image to serve as the input to a VQA system. In this manner, thisapproach is privacy-preserving, as it conceals the identities of peoplecaptured in the original images, yet it still enables meaningfulanalytics to be derived, as the topological spatial and temporalrelationships of the original images are preserved. This is particularlybeneficial in the retail context, as it enables shopper insights to bederived for retail analytics purposes without revealing the identitiesof shoppers.

FIG. 71 illustrates an example embodiment of a privacy-preserving VQAdataflow 7100. The illustrated dataflow introduces sanitization(reference numeral 7106) into the visual processing pipeline in order toconvert an original image or video into a modified privacy-preservingVQA input.

Any sanitization technique can be used that preserves the topologicalspatial and temporal relationships of the original raw visual data. Insome cases, the sanitization technique may be sufficiently lightweightsuch that it can be performed by resource-constrained devices (e.g.,devices with power constraints and/or limited computing capabilities)before they pass the visual data along to the cloud for further VQAprocessing.

In some embodiments, for example, the sanitization technique may involveadding random noise to the original image. For example, the amount ofrandom noise may be controlled such that the identity of a person in theoriginal image is concealed while the overall characteristics of thescene in the image are preserved.

The sanitization technique may also involve the use of avatars to maskthe identities of people captured in an image, as shown by FIG. 72. Forexample, since the identity of person is revealed by their face, facialdetection can be performed on the original image, and any detected facescan then be replaced with avatars. In some cases, for example, aperson's face (e.g., reference numeral 7210 a or 7210 b) may be replacedwith an avatar (e.g., reference numeral 7220 a or 7220 b) that resemblesthe facial characteristics of the person without being sufficientlydetailed to reveal the identity of the person. In this manner, theperson's identity is effectively eliminated in the pixel domain, whilestill delivering a contextual user experience involving multipleparticipants who can be disambiguated from the others within thecollaboration context. Furthermore, demographic context that istypically inferable from surrounding visual frames can be removed,obfuscated, and/or or augmented with some other virtual context.

The sanitization technique may also involve pixel-level labeling withsegmentation, as shown by FIG. 73. For example, an original image 7300can be converted into a form that uses discrete pixel labeling for eachtype of object 7310 a-e represented in the image, such as people, trees,roads, vehicles, buildings, the sky, and so forth. In FIG. 73, forexample, each object type is represented using a different color.

This privacy-preserving visual processing approach serves as the key toscaling out VQA systems (e.g., VQA system 7100 of FIG. 71), as theidentities of people can be eliminated at the edge of a visual computingnetwork, yet the powerful cloud computing infrastructure can still beleveraged just as effectively for analytics purposes.

Sanitization also may be informed by convolutional neural networks(CNNs), recurrent neural networks (RNNs), and/or shepard interpolationneural networks (SINNs), where a trained “dot product” may be used tofilter privacy-sensitive learned content. For example, a convolutionallayer uses the layer's parameters consisting of a set of learnablefilters (or kernels), which have a small receptive field, but extendthrough the full depth of the input volume. During the forward pass,each filter is convolved across the width and height of the inputvolume, computing the dot product between the entries of the filter andthe input and producing a 2-dimensional activation map of that filter.As a result, the network learns filters that activate when it detectssome specific type of feature at some spatial position in the input. Anadditional layer may use a “stop list” of kernels that are coded to beprivacy-sensitive, such as “faces of humans” or “geographic locations.”When a content filter having privacy sensitive input is detected, theprivacy filter kernels are activated to detect if there is a privacysensitivity. If true, the convolutional layers will also recognizeprivacy sensitivity, which may be used to flag or trigger application ofany of the above privacy mitigation strategies.

Variable Size Tiles for Array-Based Storage

Video processing is increasingly becoming a fundamental tool forsoftware systems to perform high level tasks, be it for identifyingshopper behaviors in retail stores, video surveillance systems forsecurity, traffic monitoring, autonomous driver assistance systems,virtual reality systems, real-time 3D model generation for sportsbroadcasts, and many more. Typical instantiations of such systemsinvolve processing pipelines where each pipeline stage runs some videoalgorithm and emits its output for a downstream stage to processfurther. Often, resource constrained environments deploy such processingin the cloud. A critical aspect of the overall performance (both latencyand throughput) of such systems is the ability to efficiently store andretrieve massive amounts of video data.

Video processing algorithms typically operate on sub-sections of animage or video frame. Such “regions of interest” (ROIs) within an imageor video frame identify important objects or features, and often are thesource of further analysis. However, extracting these regions fromstorage is often time consuming. Because of the way traditional imageformats are stored, it is necessary to read the entire image firstbefore the ROI can be read. Even when storing the image in anarray-based storage manager, the sub-section may span multiple areas inthe array, causing more data than necessary to be read. Thus, access toregions of interest within an image can often be time consuming.

As discussed above in connection with FIG. 22, in some cases,images/video could be stored using an analytic image format (e.g.,implemented using an array-based storage manager such as TileDB) that isdesigned to facilitate visual data processing. Using an array datamanager for the analytic format is beneficial, as it provides fastaccess to sub-sections within frames and images by creating logicaltiles over the image. These tiles are compressed individually andwritten so that only the tiles that contain the relevant information areread back. Additionally, in some embodiments, the analytic image formatmay be implemented using only LZ4 compression, which improvesperformance over traditional formats that require more complex encodingand decoding.

When implementing this analytic image format using an array-basedstorage manager (e.g., TileDB), the storage manager typically provides amechanism to specify tile layout via a configuration schema. However,the ability to define tiles is fairly coarse grained, only allowing forfixed-sized tiles that are not application-aware in any fashion.Consequently, ROIs often span multiple tiles. Retrieving such ROIsinvolves reading extra information into a contiguous memory bufferbefore the extraneous regions can be cropped out. Thus, while using theanalytic image format results in less data being read than traditionalimage formats (e.g., which have to read the entire file), there stillmay be some unnecessary data movement.

Accordingly, an analytic image format with variable-sized tiles fordifferent regions of interest (ROIs) is presented in connection withFIGS. 74-81. For example, when an image or video frame is stored inarray-based storage, it can be divided into variable-sized tiles, andthese tiles can be defined based on application-relevant regions ofinterest within the image or frame. In this manner, the regions ofinterest within images are the driving force behind how the images arestored within an array-based storage manager, which ultimately improvesimage access speeds.

This improved analytic image format provides various advantages. Forexample, image storage and retrieval are primary bottlenecks in aburgeoning class of important video processing systems, such as advanceddriver-assistance systems (ADAS), Internet-of-Things (IoT),surveillance, virtual reality, real-time 3D video creation, and soforth. The described techniques and algorithms can be used to createapplication-specified variable-sized tile definitions for an analyticimage format, which allows ROIs to be stored in a manner such that thespeed of access to these regions will be improved. Given that ROIs areusually much smaller than the entire image (e.g., in an Americanfootball game, a player is often about a 100×100 pixel region in a3840×2160 pixel frame), tile boundaries that match ROI boundaries alsotranslate into a decrease in data movement, as well as reducedpost-processing once the file data has been read in order to retrieveROIs. Further, storage-system level knowledge of important sub-sectionsof stored application data opens up numerous avenues for creatingplatform-level features for further improving access to such data.

An array data manager such as TileDB can be used as the underlyingstorage manager of the analytic image format. TileDB, for example, isoptimized for managing the storage and retrieval of dense and sparsearrays. An array is divided into tiles, each tile is compressed andwritten sequentially to disk. TileDB currently supports identicallysized tiles (e.g., the height and width must respectively be the samefor all tiles). Thus, an array data manager must be developed orotherwise extended to support varying sized tiles within images/videoframes. Moreover, region of interest information (e.g., bounding boxesthat indicate the starting coordinates (x, y) and height and width) mustbe provided by existing algorithms, such as algorithms that run furtherupstream in the application's video or image processing pipeline. Inthis manner, the ROI information can be used to define tile boundariesthat are used by the array storage manager (e.g., TileDB) to store theimage/video frame. For example, an array in TileDB is defined by aschema; the schema holds information on the size of the array and thesize of the tiles. This schema definition can be extended to indicatewhether the tile size is fixed or variable, and in the case of variablesize tiles, an indication of what algorithm should be used may befurther provided.

This disclosure describes multiple embodiments of techniques thatleverage variable-sized tiles to define a tile layout that matches theapplication-specified ROI boundaries, as described further below.

The first algorithm is illustrated by FIGS. 74-75. In particular, thefirst algorithm is a recursive quadrant division algorithm (shown inFIG. 74), wherein the image is recursively divided into four tiles.Bounding box information is used to determine which tiles containregions of interest (the logic is described in FIG. 75). The algorithmcontinues until the regions of interest are fully contained within a setof tiles. The final step in the algorithm is an optional merge step,where tiles that are not bounding any region of interest are mergedtogether to form a smaller number of larger tiles. The general form ofthis is simply the recursive division algorithm; variations on it rangefrom adding a parameter to indicate the number of tiles to divide into(nine rather than four, for example) to a more complex alternative suchas performing a binary division along each dimension.

FIGS. 76A-E illustrate a simple example of the recursive divisionalgorithm. First, a region of interest 7602 within an image 7600 isidentified (as shown by the shaded rectangle in FIG. 76A). The recursivequadrant algorithm divides the image 7600 into four tiles (as shown inFIG. 76B), and then identifies the top two quadrants/tiles as containingthe region of interest. These two tiles are further sub-divided intoquadrants/tiles, leaving the bottom two quadrants/tiles untouched (asshown by FIG. 76C). The tiles containing the region of interest arerecursively identified and sub-divided in this manner until the regionof interest 7602 is exclusively contained within entire tiles (as shownby FIG. 76D). The last step then combines the tiles that do not boundthe region of interest 7602 into larger tiles (as shown by FIG. 76E).

FIGS. 77A-F illustrate an example of the recursive quadrant divisionalgorithm with multiple regions of interest that are spread across theimage. In this example, the regions of interest represent the playersand the referee. Each iteration of the algorithm is shown in a separatesubfigure, ending with the final subfigure (FIG. 77F), where everyregion of interest is encapsulated by three to six tiles, while theother tiles have been combined to form larger tiles.

The recursive division algorithm often requires a further subdivision inorder to get some of the region of interest, as was necessary for theplayer in the top of FIGS. 77A-F. Moving from FIG. 77D to 77E requiresdividing an area that is mainly grass except for the player's feet. Insome embodiments, the parameters of the recursive division algorithm canbe varied to allow for a different division rule (such as dividing intonine rather than four), but this comes at the cost of an increase in thenumber of tiles needed to identify a region of interest.

The second algorithm is illustrated by FIGS. 78-79. In particular, FIGS.78A-B illustrates pseudocode for a region-based tiling algorithm, whileFIGS. 79A-B illustrates pseudocode for identifying obstructionsassociated with tiles constructed using the region-based tilingalgorithm. For example, the region-based tiling algorithm defines aninitial set of tiles as the regions of interest (as shown by thepseudocode of FIGS. 78A-B). Additional tiles are then determined byextending the tile width and height as far as possible, where the goalis to determine if there are any regions of interest (or other tiles)which obstruct the construction of the current tile in either the x or ydimension (as shown by the pseudocode of FIGS. 79A-B). Accordingly, thisalgorithm addresses the shortcoming noted above with respect to thefirst algorithm.

FIGS. 80A-C illustrate an example of the second algorithm (e.g., theregion-based tiling algorithm of FIGS. 78-79). The illustrated exampleof FIGS. 80A-C is based on the same image used in the example of FIGS.76A-E. With the region-based tiling algorithm, a region of interest 8002is first identified within an image 8000 (as shown in FIG. 80A), and theregion of interest is the first tile to be defined (as shown in FIG.80B). From there, a starting point is added at (0,0), which is the topleft corner of the image. There is no obstructing tile in the xdirection, so the tile extends the entire width of the image. In the ydirection, however, the region of interest is obstructing the tilecreation, creating the bottom boundary of the tile. A starting point atthe bottom left corner of the tile is added (as shown in FIG. 80C), andthe algorithm continues. For simplicity, the illustrated exampleexclusively uses rectangular tiles, but some embodiments may beimplemented using arbitrary polygon tiles of varying shapes and sizes.

A primary benefit of the region-based tiling approach is that the tilescan be more accurate with respect to the region of interest, whichresults in fewer tiles. However, the recursive quadrant divisionalgorithm may be more appropriate when there are overlapping regions ofinterest, as explained further below in connection with FIGS. 81A-C.

FIGS. 81A-C illustrate an example using an image 8100 with multipleoverlapping regions of interest 8102 a,b (as initially shown in FIG.81A). Using the region-based tiling algorithm, it is not possible toidentify the overlapping pixel(s) 8104 as existing in both regions ofinterest 8102 a,b (as shown by FIG. 81B). In fact, one of the regions ofinterest 8102 b ends up as a polygon when trying to divide by region.With the recursive division algorithm, however, it is possible torequest the overlapping tile 8104 for both regions of interest 8102 a,b(as shown in FIG. 81C).

Thus, the region-based tiling algorithm cannot handle overlappingregions of interest, while the recursive division algorithm allowsoverlapping pixel(s) to exist in both regions of interest. Accordingly,depending on the usage scenario, the respective embodiments describedabove each have pros and cons. For maximum flexibility, a portfolio oftechniques for choosing the layout of variable-sized tiles can beoffered, thus enabling the applications to control the storage ofrelevant sub-sections of data using the most efficient approach.

Integrated Online and in-Store Customer Shopping Experience

Despite the success and convenience of online shopping, shoppersnowadays are still drawn to brick-and-mortar retailers before makingpurchases (e.g., to view, touch, and/or test a product). In fact,because of this, many retailers whose presence began exclusively onlinehave since extended their footprint to include a physical presence.

The integrated approach makes it possible to offer complementarybenefits for improved customer engagement (e.g., adding online/offlineincentives based on prior offline/online activities). However,connecting the online and offline shopping experiences (e.g., websitevs. physical store) is not trivial.

Reliable customer models are hard to construct and update.Brick-and-mortar retail stores lack the mechanisms to build customers'profiles based on their activities in the same way that online storescan. For instance, when a customer is visiting an online store, thestore captures every click or mouse hover that a customer makes. Inonline stores, clicks and other mouse events are important data pointsthat are used to model a customer. In contrast, in a brick-and-mortarstore, there are many actions taken by the customer while visiting thestore that are not accounted for in their profile.

For example, most customer modeling techniques in brick-and-mortarstores rely on completed transactions (e.g., purchases and sometimesreturns). That is, the store only knows what the customer bought, butlittle or nothing about other products that the customer may have beeninterested in while visiting the store. Moreover, many solutions aretailored towards either online shopping or offline shopping, but notboth, thus leaving those respective shopping experiences disjointed.Further, as opposed to online stores, many techniques inbrick-and-mortar stores do not capture the interest in a product shownby a (potential) customer, for instance, by standing in front of theproduct's display for a few minutes. A byproduct of this limitation isthat the brick-and-mortar store cannot follow up on potential customers'interests.

Accordingly, this disclosure presents various embodiments that addressthis limitation in brick-and-mortar stores, and further bridge the gapbetween online and in-store customer activity. These embodimentsincorporate various data points into the customer model that aregenerated from actions taken by the customer during a visit to the storeand/or that are inferred from visual data. These data points are thenused to improve customer modeling. An improved customer model canproduce better analytics, resulting in, among other things, betterrecommendations to the customer. In this manner, the describedembodiments use novel customer modeling to bridge the gap between theonline and offline shopping experiences.

FIGS. 82-83 illustrate examples associated with improved retail customermodels. In particular, FIG. 82 illustrates an example 8200 of anintegrated customer model based on both online and offline customeractivity, while FIG. 83 illustrates an example 8300 of linking thein-store visual footprint and online activity of a customer. Intelligentbrick-and-mortar stores are being developed in which a massive amount ofvisual data, from cameras installed inside the store, is available. Inthese intelligent stores, the customer is usually tracked while movingin the store and charged based on algorithms that infer the acquisitionof a product, sometimes based on the analysis of data captured bysensors, such as cameras. In the example of FIG. 82, the traditionalcustomer model is extended to include customer behavior that is inferredfrom visual data captured in brick-and-mortar stores, which is combinedwith other purchases and activities of the customer (either online orin-store) to construct an improved customer model (FIG. 82, 8223).

This approach provides a device-free and seamless shopping experience byintegrating online and offline identities. As illustrated in FIGS.82-83, this goal is accomplished by linking a customer's digitalpresence with their visual footprint captured by the cameras in abrick-and-mortar store (FIG. 82, 8213). Valuable activities (e.g.,perceived interest in a product while visiting the store, clicks on thewebsite, and so forth) are linked to bridge both the brick-and-mortarand online activities (FIG. 82, 8207-8210, 8215-8218) of the customer.The integrated customer model can then be fed to machine learningalgorithms (FIG. 82, 8221) to, among other things, provide betterrecommendations of products and services (FIG. 82, 8206, 8219-8222,8224).

In some cases, a user may be required to opt-in to the linking of theseidentities, as linking may otherwise present a privacy violation (e.g.,based on an associated privacy policy or PLA). Furthermore, a seamlessor otherwise desirable in-store user experience may be achieved (withoutviolating user privacy policies) by assigning the online/offlineidentities to a set of groups/categories designed to improve userexperience. For example, a “VEGAN” category could be defined such thatproducts fitting the category are featured and/or marketed to in-storeidentities based on an offline experience that may have associated theVEGAN category with the offline identity. Membership in the category maybe achieved cryptographically using an EPID cryptographic group keywherein the offline/instore/online experience first registers the groupkey and where an SGX or other TEE is used to share the group key acrossoffline/instore/online identities. Consequently, if an offline identityexperience results in membership in the VEGAN group, the TEE will sharethe group key with an in-store identity such that the in-store identitymay choose to authenticate as the VEGAN group participant only-optinginstead to withhold any unique identity. Consequently, the in-storeexperience may be augmented by knowledge of membership in the VEGANgroup (but nothing else as that could represent an undesirable privacyviolating user experience).

This approach provides numerous advantages. In particular, it serves asa foundation for effectively interweaving online and offline shoppingexperiences in the retail sector. For example, the described solutionfacilitates a seamless transition between online shopping and offlineshopping. By having a mapping between an online profile and an in-storevisual footprint (FIG. 82, 8213), the described solution can use acustomer's activities, either online or in-store, to ensure that boththe customer's personas and activities, online and in-store, areincorporated in the customer model (FIG. 82, 8210, 8218). These noveltechniques for customer modeling can further be added to other retailsolutions that incorporate visual data analysis, thus rendering suchretail applications even more appealing.

Further, this solution is device free, as it does not require any deviceto be carried by the customer. The customer creates an account online(FIG. 82, 8203) that is mapped to its presence offline (FIG. 82, 8213).The first time the customer enters a physical store, the customer logsin at a kiosk and is gently and quickly scanned to capture a visualfootprint (FIG. 82, 8214), and once the initial visual footprint isavailable, it is updated and tracked during each posterior visit (FIG.82, 8213), without the need to subject the customer to another fullscan. The estimated time for a full scan is less than a minute. Oncecomplete, the customer no longer has to log onto their online accountwhile in the store, as long as the visual footprint is still consideredto be valid.

Businesses that do not maximize the interaction with their customers,both online and in brick-and-mortar stores, are likely to fail.Accordingly, using additional non-traditional data points from visualdata (FIG. 82, 8216) (as described further below), the describedsolution infers customer behavior (FIG. 82, 8215) and capturesinteresting data points from relevant customer activities in-store.

FIG. 84 illustrates an example 8400 of using online and in-storecustomer activities to construct a more robust customer model. As shownin FIG. 84, data points from both online and in-store activities arecombined into a more complete customer model. For example, relevantactivities, a_(k), are indexed using the time when the activity wasrecorded. Customer activities can be classified as online activities,O_(i), or in-store activities, There is an implicit mapping that can betaken into account by an analytics component. For instance, pages orsections visited online can be mapped to areas visited in the physicalstore. The resulting integrated customer model produces better resultsfrom analytics (FIG. 82, 8221) that can be used to improve theinteractions between the business and the customer (e.g., by providingbetter product recommendations (FIG. 82, 8206, 8219, 8220, 8224)).

The described solution pays particular attention to the interaction thatthe customer has with products while visiting the store, particularlyfor products that the customer does not end up buying (FIG. 82,8215-8217, 8219). In a similar manner as online stores, brick-and-mortarstores can use this data to better identify customer needs (FIG. 82,8221) and follow-up using traditional channels (e.g., mail, email (FIG.82, 8222, 8224)) and/or non-traditional channels (e.g., personalizedvisual signage (FIG. 82, 8219)).

FIG. 85 illustrates an example 8500 with a comparison of the activitiesof multiple users or customers 8502 a,b. In particular, a realisticcomparison of the behavior of two users is conducted based on both theironline activities and in-store activities (FIG. 82, 8221). As shown inFIG. 85, user 1 has a more balanced distribution between online andin-store activities than user 2. Using the integrated customer model andnon-traditional data points obtained from visual data, a business hasaccess to more comprehensive customer profiles, which allows it to gaina better understanding of the desires and needs of its customers.Further, the described solution also enables a business to map onlineactivity to in-store activity. As mentioned above, the webpages visitedby the user can be mapped to physical areas in a store. Hence, thebusiness has a better understanding of the potential behaviors anddesires of their users when visiting the store.

An example of the different types of customer activity involved in thedescribed solution (both online and in-store) is illustrated in TABLE 2.

TABLE 2 Customer activity ACTIVITY TYPE ONLINE ACTIVITY (O_(i)) IN-STOREACTIVITY (I_(j)) Online The customer registers in the systemregistration for the first time (FIG. 82, 8205). The customer canproceed to use the online front-end (FIG. 82, 8201) of the system topurchase or browse products. Initial capture The first time that thecustomer visits the of visual brick-and-mortar store (FIG. 82, 8211,8212), footprint in she has to login to her online account at abrick-and- kiosk located at the entrance of the store mortar store (FIG.82, 8212). Once logged in, a configuration of cameras captures thecustomer visual footprint that is used for future visits (FIG. 82,8214). Using this visual footprint, the store can infer customeractivity data points from each in-store visit (FIG. 82, 8213, 8215,8216). Other online Traditional data points, e.g., mouse Non-traditionaldata points are also collected or in-store events, text entered by thecustomer by inferring customer's preferences inferred activities whilevisiting the online store, from her behavior as captured in visual dataincluding product searches, are (FIG. 82, 8215-8218). collected and usedto improve the customer model (FIG. 82, 8207-8210).

As shown in TABLE 2, a customer initially registers in the systemonline. Once the customer is registered, every relevant activity iscollected and used to improve the customer model. In addition to datapoints obtained from online activities, several non-traditional datapoints are also added to the customer model. These data points areobtained from the analysis of visual data (FIG. 82, 8215).

As an example, the amount of time a customer spends in certain area(s)of a store can be tracked as additional data points. In particular, acustomer is continuously tracked using vision sensors (e.g., cameras)when visiting a store. Areas where the customer tends to spend asignificant amount of time are important data points for futuremarketing of products. These data points are obtained from analyzingtemporal information about areas visited by the customer while in thestore. Similar to what occurs in online stores, if the customer isspending significant time in a particular area, that behavior isregistered as a data point used in the generation of the improvedcustomer model. The store then can follow up as appropriate (e.g., viamail/email about promotions), thus improving the relationship with thecustomer.

As another example, head pose estimation, customer posture detection,and product position tracking can be used to derive additional datapoints. For example, FIG. 86 illustrates an example 8600 of using headpose to infer customer data points. In particular, based on customerhead pose estimation 8603 combined with product position tracking, itcan be inferred that a customer 8602 is observing a particular product8604. If the observation exceeds a temporal threshold, a data point isgenerated and used to improve the customer model. For example, whileinside a store, a customer may gaze in the direction of a product. Thisbehavior is timed, and if a threshold is exceeded, a data point isgenerated for this event. In this manner, if the customer has beenobserving a particular article, the store can subsequently follow upwith the customer to provide additional information about the product.This solution fills the vacuum that is missing in traditional customermodeling. Using a combination of temporal thresholding and analysis ofvisual data, additional data points are added to the customer model,allowing the store to reach out and follow-up with the customer withoffers and other information. By improving customer modeling, the storeis expected to increase sales.

As another example, products that a customer interacts with (e.g., bytouching with their hands) can be tracked as additional data points. Insome embodiments, for example, these data points can be generated bytriangulating the position of a customer's hands as captured by multiplecameras, in conjunction with a mapping of the products on display. Forinstance, if a customer's hand is close or has touched the shelf wheresome products are located (e.g., laundry detergents), and a temporalthreshold has been exceeded, a data point is generated in connectionwith the customer's apparent interest in a particular product/brand.

Using these additional data points from in-store visual data, a bettermodel of the customer can be constructed. For instance, in addition toknowing that customer X has bought products <k, l, m>, it can also bedetermined that the customer has shown interest in products <n, o>,either in-store or online. This approach provides valuable informationto a store. The improved customer models can be used in conjunction withrecommendation systems to follow up with offers to customers. This willresult in increased sales for brick-and-mortar stores, along withimproved customer relationships.

The following are examples of the types of customer activities that canbe tracked and leveraged by this solution:

-   -   (1) traditional activities that are used to build online        customer profiles: timestamp of visit, products clicked on and        other mouse events, searches, and so forth;    -   (2) traditional activities that are used to build a profile of        the customer in-store: purchases, returns, and so forth;    -   (3) additional activities inferred from in-store visual data:        products observed for a time above a threshold t₁, Areas visited        for a time above a threshold t₂, products touched by the        customer, and so forth.        In this manner, an improved customer model can be built using        all of the above categories of data points, as opposed to just        the first or second categories.

FIG. 87 illustrates an example dataflow 8700 for creating an improvedcustomer model using both traditional and visual data. For example,traditional in-store data points (e.g., product purchases) and onlinedata points (FIG. 82, 8207-8210, 8217) are used in conjunction with datapoints for inferred customer behavior derived from visual data capturedin-store (FIG. 82, 8215, 8216). By combining traditional data pointswith visual data points, a better customer model is generated.

FIG. 88 illustrates the architecture of an example application 8800 thatleverages integrated online and in-store customer profiles. Inparticular, a better customer profile is generated by combining datapoints obtained from three sources: customer behavior in-store inferredfrom visual data (FIG. 82, 8215), customer's online activity (FIG. 82,8210) and in-store purchase information (FIG. 82, 8217). Using theimproved customer model and inventory information, the store can thenproceed to recommend products to the customer, which results in a moremeaningful relationship with the customer based on the improved customermodel. The weight assigned to each data point generated from a customeraction is weighed differently depending on the type of business.Traditional machine learning algorithms can be used to find the bestassignment of weights to each type of data point.

While customers are typically comfortable with sharing personalinformation with retailers online, having their visual footprint trackedand stored when visiting brick-and-mortar businesses may raise potentialprivacy concerns. Accordingly, this solution can be combined with otherembodiments described throughout this disclosure—or otherwiseavailable—that relate to privacy protection for visual computingsystems. For example, this solution can be combined with solutions thatfocus on protecting the identity of people captured by cameras. Camerasare ubiquitous in retail stores, and with the development of better andmore affordable devices, the number of cameras deployed in thereal-world is only expected to grow. This solution leverages that trendto help retailers create better models of their customers, and it can beadapted to provide the appropriate level of privacy depending on thecontext.

The flowcharts and block diagrams in the FIGURES illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods and computer program products according to variousaspects of the present disclosure. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof code, which comprises one or more executable instructions forimplementing the specified logical function(s). It should also be notedthat, in some alternative implementations, the functions noted in theblock may occur out of the order noted in the figures. For example, twoblocks shown in succession may, in fact, be executed substantiallyconcurrently, or the blocks may sometimes be executed in the reverseorder or alternative orders, depending upon the functionality involved.It will also be noted that each block of the block diagrams and/orflowchart illustration, and combinations of blocks in the block diagramsand/or flowchart illustration, can be implemented by special purposehardware-based systems that perform the specified functions or acts, orcombinations of special purpose hardware and computer instructions.

The foregoing disclosure outlines features of several embodiments sothat those skilled in the art may better understand various aspects ofthe present disclosure. Those skilled in the art should appreciate thatthey may readily use the present disclosure as a basis for designing ormodifying other processes and structures for carrying out the samepurposes and/or achieving the same advantages of the embodimentsintroduced herein. Those skilled in the art should also realize thatsuch equivalent constructions do not depart from the spirit and scope ofthe present disclosure, and that they may make various changes,substitutions, and alterations herein without departing from the spiritand scope of the present disclosure.

All or part of any hardware element disclosed herein may readily beprovided in a system-on-a-chip (SoC), including a central processingunit (CPU) package. An SoC represents an integrated circuit (IC) thatintegrates components of a computer or other electronic system into asingle chip. The SoC may contain digital, analog, mixed-signal, andradio frequency functions, all of which may be provided on a single chipsubstrate. Other embodiments may include a multi-chip-module (MCM), witha plurality of chips located within a single electronic package andconfigured to interact closely with each other through the electronicpackage. In various other embodiments, the computing functionalitiesdisclosed herein may be implemented in one or more silicon cores inApplication Specific Integrated Circuits (ASICs), Field ProgrammableGate Arrays (FPGAs), and other semiconductor chips.

As used throughout this specification, the term “processor” or“microprocessor” should be understood to include not only a traditionalmicroprocessor (such as Intel's° industry-leading x86 and x64architectures), but also graphics processors, matrix processors, and anyASIC, FPGA, microcontroller, digital signal processor (DSP),programmable logic device, programmable logic array (PLA), microcode,instruction set, emulated or virtual machine processor, or any similar“Turing-complete” device, combination of devices, or logic elements(hardware or software) that permit the execution of instructions.

Note also that in certain embodiments, some of the components may beomitted or consolidated. In a general sense, the arrangements depictedin the figures should be understood as logical divisions, whereas aphysical architecture may include various permutations, combinations,and/or hybrids of these elements. It is imperative to note thatcountless possible design configurations can be used to achieve theoperational objectives outlined herein. Accordingly, the associatedinfrastructure has a myriad of substitute arrangements, design choices,device possibilities, hardware configurations, software implementations,and equipment options.

In a general sense, any suitably-configured processor can executeinstructions associated with data or microcode to achieve the operationsdetailed herein. Any processor disclosed herein could transform anelement or an article (for example, data) from one state or thing toanother state or thing. In another example, some activities outlinedherein may be implemented with fixed logic or programmable logic (forexample, software and/or computer instructions executed by a processor)and the elements identified herein could be some type of a programmableprocessor, programmable digital logic (for example, a field programmablegate array (FPGA), an erasable programmable read only memory (EPROM), anelectrically erasable programmable read only memory (EEPROM)), an ASICthat includes digital logic, software, code, electronic instructions,flash memory, optical disks, CD-ROMs, DVD ROMs, magnetic or opticalcards, other types of machine-readable mediums suitable for storingelectronic instructions, or any suitable combination thereof.

In operation, a storage may store information in any suitable type oftangible, non-transitory storage medium (for example, random accessmemory (RAM), read only memory (ROM), field programmable gate array(FPGA), erasable programmable read only memory (EPROM), electricallyerasable programmable ROM (EEPROM), or microcode), software, hardware(for example, processor instructions or microcode), or in any othersuitable component, device, element, or object where appropriate andbased on particular needs. Furthermore, the information being tracked,sent, received, or stored in a processor could be provided in anydatabase, register, table, cache, queue, control list, or storagestructure, based on particular needs and implementations, all of whichcould be referenced in any suitable timeframe. Any of the memory orstorage elements disclosed herein should be construed as beingencompassed within the broad terms ‘memory’ and ‘storage,’ asappropriate. A non-transitory storage medium herein is expresslyintended to include any non-transitory special-purpose or programmablehardware configured to provide the disclosed operations, or to cause aprocessor to perform the disclosed operations. A non-transitory storagemedium also expressly includes a processor having stored thereonhardware-coded instructions, and optionally microcode instructions orsequences encoded in hardware, firmware, or software.

Computer program logic implementing all or part of the functionalitydescribed herein is embodied in various forms, including, but in no waylimited to, hardware description language, a source code form, acomputer executable form, machine instructions or microcode,programmable hardware, and various intermediate forms (for example,forms generated by an HDL processor, assembler, compiler, linker, orlocator). In an example, source code includes a series of computerprogram instructions implemented in various programming languages, suchas an object code, an assembly language, or a high-level language suchas OpenCL, FORTRAN, C, C++, JAVA, or HTML for use with various operatingsystems or operating environments, or in hardware description languagessuch as Spice, Verilog, and VHDL. The source code may define and usevarious data structures and communication messages. The source code maybe in a computer executable form (e.g., via an interpreter), or thesource code may be converted (e.g., via a translator, assembler, orcompiler) into a computer executable form, or converted to anintermediate form such as byte code. Where appropriate, any of theforegoing may be used to build or describe appropriate discrete orintegrated circuits, whether sequential, combinatorial, state machines,or otherwise.

In one example, any number of electrical circuits of the FIGURES may beimplemented on a board of an associated electronic device. The board canbe a general circuit board that can hold various components of theinternal electronic system of the electronic device and, further,provide connectors for other peripherals. More specifically, the boardcan provide the electrical connections by which the other components ofthe system can communicate electrically. Any suitable processor andmemory can be suitably coupled to the board based on particularconfiguration needs, processing demands, and computing designs. Othercomponents such as external storage, additional sensors, controllers foraudio/video display, and peripheral devices may be attached to the boardas plug-in cards, via cables, or integrated into the board itself. Inanother example, the electrical circuits of the FIGURES may beimplemented as stand-alone modules (e.g., a device with associatedcomponents and circuitry configured to perform a specific application orfunction) or implemented as plug-in modules into application specifichardware of electronic devices.

Note that with the numerous examples provided herein, interaction may bedescribed in terms of two, three, four, or more electrical components.However, this has been done for purposes of clarity and example only. Itshould be appreciated that the system can be consolidated orreconfigured in any suitable manner. Along similar design alternatives,any of the illustrated components, modules, and elements of the FIGURESmay be combined in various possible configurations, all of which arewithin the broad scope of this specification. In certain cases, it maybe easier to describe one or more of the functionalities of a given setof flows by only referencing a limited number of electrical elements. Itshould be appreciated that the electrical circuits of the FIGURES andits teachings are readily scalable and can accommodate a large number ofcomponents, as well as more complicated/sophisticated arrangements andconfigurations. Accordingly, the examples provided should not limit thescope or inhibit the broad teachings of the electrical circuits aspotentially applied to a myriad of other architectures.

Numerous other changes, substitutions, variations, alterations, andmodifications may be ascertained to one skilled in the art and it isintended that the present disclosure encompass all such changes,substitutions, variations, alterations, and modifications as fallingwithin the scope of the appended claims.

EXAMPLE IMPLEMENTATIONS

The following examples pertain to embodiments described throughout thisdisclosure.

One or more embodiments may include an apparatus, comprising: a memoryto store visual data captured by one or more sensors; and a processorto: detect one or more first objects in the visual data based on amachine learning model and one or more first reference templates,wherein the one or more first reference templates are for objectrecognition of the one or more first objects; determine, based on anobject ontology, that the visual data is expected to contain a secondobject, wherein the object ontology indicates that the second object isrelated to the one or more first objects; detect the second object inthe visual data based on the machine learning model and a secondreference template, wherein the second reference template is for objectrecognition of the second object; determine, based on an inference rule,that the visual data is expected to contain a third object; and detectthe third object in the visual data based on the machine learning modeland a third reference template, wherein the third reference template isfor object recognition of the third object.

In one example embodiment of an apparatus, the apparatus furthercomprises the one or more sensors, wherein the one or more sensorscomprise a camera.

In one example embodiment of an apparatus, the apparatus furthercomprises a communication interface to: obtain, via a network, thesecond reference template from a reference template repository, whereinthe second reference template is obtained based at least in part ondetermining that the visual data is expected to contain the secondobject; and obtain, via the network, the third reference template fromthe reference template repository, wherein the third reference templateis obtained based at least in part on determining that the visual datais expected to contain the third object.

In one example embodiment of an apparatus, the object ontology comprisesa representation of a hierarchy of objects at a plurality of levels ofabstraction.

In one example embodiment of an apparatus, the processor to determine,based on the object ontology, that the visual data is expected tocontain the second object is further to: determine, based on thehierarchy of objects, that the second object is a parent of the one ormore first objects.

In one example embodiment of an apparatus: the one or more first objectscomprise a plurality of first objects; and the hierarchy of objectsindicates that the second object is a common parent of the plurality offirst objects.

In one example embodiment of an apparatus, the processor to determine,based on the object ontology, that the visual data is expected tocontain the second object is further to: determine, based on thehierarchy of objects, that the second object is a child of the one ormore first objects.

In one example embodiment of an apparatus, the inference rule comprisesa plurality of conditions associated with recognizing a particularvisual scene.

In one example embodiment of an apparatus, the plurality of conditionsindicate that the particular visual scene is associated with the one ormore first objects, the second object, and the third object.

In one example embodiment of an apparatus, the processor is further to:identify the inference rule from a plurality of inference rules, whereinthe inference rule is identified based on a determination that thevisual data and the particular visual scene associated with theinference rule each comprise the one or more first objects and thesecond object.

In one example embodiment of an apparatus, the processor is further to:determine that the visual data comprises the particular visual sceneassociated with the inference rule, wherein the visual data satisfiesthe plurality of conditions associated with recognizing the particularvisual scene.

One or more embodiments may include a system, comprising: a camera tocapture visual data representing an environment; a memory to store oneor more first reference templates associated with object recognition ofone or more first objects; a communication interface to receive, over anetwork from a reference template repository, a second referencetemplate associated with object recognition of a second object and athird reference template associated with object recognition of a thirdobject; and one or more processing devices to: detect the one or morefirst objects in the visual data based on a machine learning model andthe one or more first reference templates; determine, based on an objectontology, that the visual data is expected to contain the second object,wherein the object ontology indicates that the second object is relatedto the one or more first objects; detect the second object in the visualdata based on the machine learning model and the second referencetemplate; determine, based on an inference rule, that the visual data isexpected to contain the third object; and detect the third object in thevisual data based on the machine learning model and the third referencetemplate.

In one example embodiment of a system, the one or more processingdevices comprise: an object recognition processor to: detect the one ormore first objects in the visual data based on the machine learningmodel and the one or more first reference templates; detect the secondobject in the visual data based on the machine learning model and thesecond reference template; and detect the third object in the visualdata based on the machine learning model and the third referencetemplate; a semantic processor to determine, based on the objectontology, that the visual data is expected to contain the second object;and an inference processor to determine, based on the inference rule,that the visual data is expected to contain the third object.

In one example embodiment of a system, the system further comprises: acache to store a plurality of reference templates, wherein the pluralityof reference templates comprises: the one or more first referencetemplates; the second reference template; or the third referencetemplate; and a cache warmer to: determine that the plurality ofreference templates may be needed for object recognition; retrieve theplurality of reference templates from the reference template repository;and store the plurality of reference templates in the cache.

In one example embodiment of a system, the object ontology comprises arepresentation of a hierarchy of objects at a plurality of levels ofabstraction.

In one example embodiment of a system, the one or more processingdevices to determine, based on the object ontology, that the visual datais expected to contain the second object are further to: determine,based on the hierarchy of objects, that the second object is a parent ofthe one or more first objects; or determine, based on the hierarchy ofobjects, that the second object is a child of the one or more firstobjects.

In one example embodiment of a system, the inference rule comprises aplurality of conditions associated with recognizing a particular visualscene, wherein the plurality of conditions indicate that the particularvisual scene comprises the one or more first objects, the second object,and the third object.

In one example embodiment of a system, the one or more processingdevices are further to: determine that the visual data comprises theparticular visual scene associated with the inference rule, wherein thevisual data satisfies the plurality of conditions associated withrecognizing the particular visual scene.

One or more embodiments may include at least one machine accessiblestorage medium having instructions stored thereon, wherein theinstructions, when executed on a machine, cause the machine to: obtainvisual data captured by one or more sensors; detect one or more firstobjects in the visual data based on a machine learning model and one ormore first reference templates, wherein the one or more first referencetemplates are for object recognition of the one or more first objects;determine, based on an object ontology, that the visual data is expectedto contain a second object, wherein the object ontology indicates thatthe second object is related to the one or more first objects; detectthe second object in the visual data based on the machine learning modeland a second reference template, wherein the second reference templateis for object recognition of the second object; determine, based on aninference rule, that the visual data is expected to contain a thirdobject; and detect the third object in the visual data based on themachine learning model and a third reference template, wherein the thirdreference template is for object recognition of the third object.

In one example embodiment of a storage medium: the object ontologycomprises a representation of a hierarchy of objects at a plurality oflevels of abstraction; and the instructions that cause the machine todetermine, based on the object ontology, that the visual data isexpected to contain the second object further cause the machine to:determine, based on the hierarchy of objects, that the second object isa parent of the one or more first objects; or determine, based on thehierarchy of objects, that the second object is a child of the one ormore first objects.

In one example embodiment of a storage medium, the inference rulecomprises a plurality of conditions associated with recognizing aparticular visual scene, wherein the plurality of conditions indicatethat the particular visual scene comprises the one or more firstobjects, the second object, and the third object.

In one example embodiment of a storage medium, the instructions furthercause the machine to: determine that the visual data comprises theparticular visual scene associated with the inference rule, wherein thevisual data satisfies the plurality of conditions associated withrecognizing the particular visual scene.

One or more embodiments may include a method, comprising: obtainingvisual data captured by one or more sensors; detecting one or more firstobjects in the visual data based on a machine learning model and one ormore first reference templates, wherein the one or more first referencetemplates are for object recognition of the one or more first objects;determining, based on an object ontology, that the visual data isexpected to contain a second object, wherein the object ontologyindicates that the second object is related to the one or more firstobjects; detecting the second object in the visual data based on themachine learning model and a second reference template, wherein thesecond reference template is for object recognition of the secondobject; determining, based on an inference rule, that the visual data isexpected to contain a third object; and detecting the third object inthe visual data based on the machine learning model and a thirdreference template, wherein the third reference template is for objectrecognition of the third object.

In one example embodiment of a method: the object ontology comprises arepresentation of a hierarchy of objects at a plurality of levels ofabstraction; and determining, based on the object ontology, that thevisual data is expected to contain the second object comprises:determining, based on the hierarchy of objects, that the second objectis a parent of the one or more first objects; or determining, based onthe hierarchy of objects, that the second object is a child of the oneor more first objects.

In one example embodiment of a method: the inference rule comprises aplurality of conditions associated with recognizing a particular visualscene, wherein the plurality of conditions indicate that the particularvisual scene comprises the one or more first objects, the second object,and the third object; and the method further comprises determining thatthe visual data comprises the particular visual scene associated withthe inference rule, wherein the visual data satisfies the plurality ofconditions associated with recognizing the particular visual scene.

What is claimed is:
 1. A processing device to perform scene recognition,comprising: interface circuitry to receive visual data captured by oneor more sensors; and processing circuitry to: detect a first set ofobjects in the visual data based on one or more first machine learningmodels, wherein the one or more first machine learning models aretrained to detect the first set of objects; determine, based ondetecting the first set of objects, that the visual data is expected tocontain a second object, wherein the second object is related to atleast a subset of the first set of objects; detect the second object inthe visual data based on a second machine learning model, wherein thesecond machine learning model is trained to detect the second object;and recognize a scene captured in the visual data, wherein the scene isrecognized based on detecting the first set of objects and the secondobject in the visual data.
 2. The processing device of claim 1, whereinthe processing circuitry to determine, based on detecting the first setof objects, that the visual data is expected to contain the secondobject is further to: determine that the visual data is expected tocontain the second object based on an object ontology, wherein theobject ontology indicates that the second object is related to at leastthe subset of the first set of objects.
 3. The processing device ofclaim 2, wherein the object ontology indicates hierarchicalrelationships among a plurality of objects at a plurality of levels ofabstraction.
 4. The processing device of claim 3, wherein the processingcircuitry to determine that the visual data is expected to contain thesecond object based on the object ontology is further to: determine,based on the hierarchical relationships among the plurality of objects,that the second object is a parent of at least the subset of the firstset of objects.
 5. The processing device of claim 3, wherein theprocessing circuitry to determine that the visual data is expected tocontain the second object based on the object ontology is further to:determine, based on the hierarchical relationships among the pluralityof objects, that the second object is a child of at least the subset ofthe first set of objects.
 6. The processing device of claim 1, whereinthe processing circuitry to recognize the scene captured in the visualdata is further to: evaluate a scene inference rule against the visualdata, wherein the scene inference rule indicates a set of criteria forrecognizing the scene, and wherein the scene inference rule is evaluatedbased on the first set of objects and the second object detected in thevisual data; determine that the visual data satisfies the set ofcriteria for recognizing the scene; and infer, based on determining thatthe visual data satisfies the set of criteria for recognizing the scene,that the scene is captured in the visual data.
 7. The processing deviceof claim 6, wherein the set of criteria indicates expected contentwithin the scene.
 8. The processing device of claim 1, wherein theprocessing circuitry is further to: send, via the interface circuitry, arequest to obtain the second machine learning model from a repositoryover a network, wherein the request is sent based at least in part ondetermining that the visual data is expected to contain the secondobject; and receive, via the interface circuitry, the second machinelearning model from the repository over the network.
 9. The processingdevice of claim 1, wherein the processing circuitry is further to:determine, based on recognizing the scene captured in the visual data,that the visual data is expected to contain a third object, wherein thethird object is related to the scene; and detect the third object in thevisual data based on a third machine learning model, wherein the thirdmachine learning model is trained to detect the third object.
 10. Theprocessing device of claim 1, wherein the one or more sensors comprise acamera.
 11. At least one non-transitory machine accessible storagemedium having instructions stored thereon, wherein the instructions,when executed on processing circuitry, cause the processing circuitryto: receive, via interface circuitry, visual data captured by one ormore sensors; detect a first set of objects in the visual data based onone or more first machine learning models, wherein the one or more firstmachine learning models are trained to detect the first set of objects;determine, based on detecting the first set of objects, that the visualdata is expected to contain a second object, wherein the second objectis related to at least a subset of the first set of objects; detect thesecond object in the visual data based on a second machine learningmodel, wherein the second machine learning model is trained to detectthe second object; and recognize a scene captured in the visual data,wherein the scene is recognized based on detecting the first set ofobjects and the second object in the visual data.
 12. The storage mediumof claim 11, wherein the instructions that cause the processingcircuitry to determine, based on detecting the first set of objects,that the visual data is expected to contain the second object furthercause the processing circuitry to: determine that the visual data isexpected to contain the second object based on an object ontology,wherein the object ontology indicates that the second object is relatedto at least the subset of the first set of objects.
 13. The storagemedium of claim 12, wherein the object ontology indicates hierarchicalrelationships among a plurality of objects at a plurality of levels ofabstraction.
 14. The storage medium of claim 13, wherein theinstructions that cause the processing circuitry to determine that thevisual data is expected to contain the second object based on the objectontology further cause the processing circuitry to: determine, based onthe hierarchical relationships among the plurality of objects, that thesecond object is a parent of at least the subset of the first set ofobjects.
 15. The storage medium of claim 13, wherein the instructionsthat cause the processing circuitry to determine that the visual data isexpected to contain the second object based on the object ontologyfurther cause the processing circuitry to: determine, based on thehierarchical relationships among the plurality of objects, that thesecond object is a child of at least the subset of the first set ofobjects.
 16. The storage medium of claim 11, wherein the instructionsthat cause the processing circuitry to recognize the scene captured inthe visual data further cause the processing circuitry to: evaluate ascene inference rule against the visual data, wherein the sceneinference rule indicates a set of criteria for recognizing the scene,and wherein the scene inference rule is evaluated based on the first setof objects and the second object detected in the visual data; determinethat the visual data satisfies the set of criteria for recognizing thescene; and infer, based on determining that the visual data satisfiesthe set of criteria for recognizing the scene, that the scene iscaptured in the visual data.
 17. The storage medium of claim 16, whereinthe set of criteria indicates expected content within the scene.
 18. Thestorage medium of claim 11, wherein the instructions further cause theprocessing circuitry to: send, via the interface circuitry, a request toobtain the second machine learning model from a repository over anetwork, wherein the request is sent based at least in part ondetermining that the visual data is expected to contain the secondobject; and receive, via the interface circuitry, the second machinelearning model from the repository over the network.
 19. The storagemedium of claim 11, wherein the instructions further cause theprocessing circuitry to: determine, based on recognizing the scenecaptured in the visual data, that the visual data is expected to containa third object, wherein the third object is related to the scene; anddetect the third object in the visual data based on a third machinelearning model, wherein the third machine learning model is trained todetect the third object.
 20. A method of performing scene recognition,comprising: receiving, via interface circuitry, visual data captured byone or more sensors; detecting a first set of objects in the visual databased on one or more first machine learning models, wherein the one ormore first machine learning models are trained to detect the first setof objects; determining, based on detecting the first set of objects,that the visual data is expected to contain a second object, wherein thesecond object is related to at least a subset of the first set ofobjects; detecting the second object in the visual data based on asecond machine learning model, wherein the second machine learning modelis trained to detect the second object; and recognizing a scene capturedin the visual data, wherein the scene is recognized based on detectingthe first set of objects and the second object in the visual data. 21.The method of claim 20, wherein determining, based on detecting thefirst set of objects, that the visual data is expected to contain thesecond object comprises: determining that the visual data is expected tocontain the second object based on an object ontology, wherein theobject ontology indicates that the second object is related to at leastthe subset of the first set of objects.
 22. The method of claim 20,wherein recognizing the scene captured in the visual data comprises:evaluating a scene inference rule against the visual data, wherein thescene inference rule indicates a set of criteria for recognizing thescene, and wherein the scene inference rule is evaluated based on thefirst set of objects and the second object detected in the visual data;determining that the visual data satisfies the set of criteria forrecognizing the scene; and inferring, based on determining that thevisual data satisfies the set of criteria for recognizing the scene,that the scene is captured in the visual data.
 23. The method of claim20, further comprising: determining, based on recognizing the scenecaptured in the visual data, that the visual data is expected to containa third object, wherein the third object is related to the scene; anddetecting the third object in the visual data based on a third machinelearning model, wherein the third machine learning model is trained todetect the third object.
 24. A system for performing scene recognition,comprising: a camera to capture visual data of an environment; andprocessing circuitry to: detect a first set of objects in the visualdata based on one or more first machine learning models, wherein the oneor more first machine learning models are trained to detect the firstset of objects; determine, based on detecting the first set of objects,that the visual data is expected to contain a second object, wherein thesecond object is related to at least a subset of the first set ofobjects; detect the second object in the visual data based on a secondmachine learning model, wherein the second machine learning model istrained to detect the second object; and recognize a scene captured inthe visual data, wherein the scene is recognized based on detecting thefirst set of objects and the second object in the visual data.
 25. Thesystem of claim 24, wherein the processing circuitry comprises: acentral processing unit; and an artificial intelligence accelerator.